Skip to content

Bump Java version to 11 #13

Bump Java version to 11

Bump Java version to 11 #13

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*