Upgrade wrapper to Gradle 8.4-rc-2 #503
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 Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
java: ['17', '21-ea'] | |
distribution: ['temurin'] | |
fail-fast: false | |
name: ${{ matrix.os }} JDK ${{ matrix.distribution }} ${{ matrix.java }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK (via matrix) for Gradle and Gradle Java Toolchain | |
id: setupjdk | |
uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- name: Verify Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Build with Gradle | |
shell: bash | |
run: | | |
JDKVER=${{ matrix.java }} | |
./gradlew -PbaseModuleJavaCompatibility=8 -PjavaToolchainVersion=${JDKVER%%"-ea"} buildCI buildJPackages --scan --info --stacktrace | |
env: | |
JAVA_HOME: ${{ steps.setupjdk.outputs.path }} | |
- name: Upload DMG as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: supernaut-fx-hello-jdk${{ matrix.java }}-${{ matrix.os }}-dmg | |
path: apps/supernaut-fx-sample-hello/build/jpackage/*.dmg | |
if-no-files-found: ignore | |
- name: Upload EXE as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: supernaut-fx-hello-jdk${{ matrix.java }}-${{ matrix.os }}-exe | |
path: apps/supernaut-fx-sample-hello/build/jpackage/*.exe | |
if-no-files-found: ignore | |
- name: Upload DEB as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: supernaut-fx-hello-jdk${{ matrix.java }}-${{ matrix.os }}-deb | |
path: apps/supernaut-fx-sample-hello/build/jpackage/*.deb | |
if-no-files-found: ignore | |
- name: Upload RPM as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: supernaut-fx-hello-jdk${{ matrix.java }}-${{ matrix.os }}-rpm | |
path: apps/supernaut-fx-sample-hello/build/jpackage/*.rpm | |
if-no-files-found: ignore |