nurLKs als Grundkurs verstecken #176
This file contains 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: Gradle Package | |
on: | |
push: | |
branches-ignore: | |
- data | |
paths-ignore: | |
- '**.md' | |
- '.idea/**' | |
- '**.py' | |
workflow_dispatch: | |
jobs: | |
gradle: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-latest, macos-latest, ubuntu-latest ] | |
# arch: [ x64 ] | |
# java-distro: [ corretto ] | |
# include: | |
# - os: windows-latest | |
# arch: x86 | |
# java-distro: zulu | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout project sources | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
# distribution: ${{ matrix.java-distro }} | |
distribution: 'corretto' | |
java-version: '18' | |
# architecture: ${{ matrix.arch }} | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: 7.4 | |
- name: Build Application with JPackage | |
run: gradle :app:jpackage | |
- name: Build Commandline-Merger with JPackage | |
run: gradle :merger:jpackage | |
- name: Upload binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: application | |
path: out/executable/ | |
- name: Build RPMs with JPackage | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
gradle :app:buildRPM | |
gradle :merger:buildRPM | |
- name: Upload rpm binaries | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: application | |
path: out/executable/ | |
# - name: Rename win32 Binaries | |
# if: ${{ matrix.arch == 'x86' }} | |
# working-directory: ./out/executable/basic | |
# shell: cmd | |
# run: | | |
# for %%F in (*.msi) do RENAME %%F "%%~nF_win32.msi" | |
# cd ../full | |
# for %%F in (*.msi) do RENAME %%F "%%~nF_win32.msi" | |