jar analyzer build #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: jar analyzer build | |
| on: | |
| workflow_dispatch: | |
| env: | |
| VERSION: "1.1.0" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: checkout the source | |
| uses: actions/checkout@v4 | |
| with: | |
| path: jar-analyzer | |
| - name: set up java 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: set up python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.8' | |
| - name: build core | |
| run: | | |
| .\package.bat | |
| working-directory: jar-analyzer | |
| - name: copy jar | |
| run: | | |
| New-Item -ItemType Directory -Force -Path "release" | |
| Copy-Item "target\jar-analyzer-engine-${{ env.VERSION }}-jar-with-dependencies.jar" -Destination "release\jar-analyzer-engine-${{ env.VERSION }}.jar" | |
| working-directory: jar-analyzer | |
| - name: upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jar-analyzer | |
| path: | | |
| jar-analyzer/release/jar-analyzer-engine-${{ env.VERSION }}.jar |