Update build-jpackage-win.yml #9
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: Build Windows CLI without testing | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: set up JDK 1.21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Build with Gradle | |
| run: | | |
| dir | |
| .\gradlew.bat build --info --stacktrace :RMBTClient:shadowJar -x test | |
| - name: Build jpackage | |
| run: | | |
| cd RMBTClient\build\ | |
| dir * | |
| jpackage --input libs/ --name "RTR-Netztest" --main-jar RMBTClient-all.jar --main-class at.rtr.rmbt.client.RMBTClientRunner --type app-image --app-version "1.0.19" --vendor "RTR" --verbose --arguments --log --description ".desc" | |
| dir * | |
| - name: Archive files exe | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: outputs | |
| path: | | |
| RMBTClient/build/RTR-Netztest/* | |
| retention-days: 365 | |
| - name: Archive files jar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: outputs | |
| path: | | |
| RMBTClient/build/libs/*-all.jar | |
| retention-days: 365 |