Bump Java version to 11 #13
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: GraalVM Native Image builds | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
name: mqtt-cli native image for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest-xlarge, windows-latest, ubuntu-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17' | |
distribution: 'graalvm' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
- name: Compile native executable | |
run: ./gradlew nativeCompile | |
- name: Upload native executable | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mqtt-cli-${{ matrix.os }} | |
path: build/native/nativeCompile/mqtt-cli* |