Updated docs #5
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' ] | |
fail-fast: false | |
name: ${{ matrix.os }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Echo JAVA_HOME | |
run: echo $JAVA_HOME | |
- name: Verify Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Execute build | |
run: ./gradlew --info --stacktrace build | |
- name: Execute jlink | |
run: ./gradlew --info --stacktrace jlink | |
- name: Execute jpackage | |
run: ./gradlew --info --stacktrace jpackage | |
- name: Upload DMG as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-dmg | |
path: build/jpackage/*.dmg | |
- name: Upload EXE as an artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-exe | |
path: build/jpackage/*.exe | |
- name: Upload MSI as an artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-msi | |
path: build/jpackage/*.msi | |
- name: Upload DEB as an artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-deb | |
path: build/jpackage/*.deb | |
- name: Upload RPM as an artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: hellofx-jdk${{ matrix.java }}-${{ matrix.os }}-rpm | |
path: build/jpackage/*.rpm |