GraalVM Native Image builds on All platforms #2
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 All platforms | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Building CATS on ${{ matrix.os }} {{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
arch: [ amd64, arm64 ] | |
exclude: | |
- os: windows-latest | |
arch: arm64 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '21' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
- name: Build and run CATS | |
run: | | |
mvn -B clean --file pom.xml | |
mvn -B package --file pom.xml -Pnative -DskipTests=true | |
- name: Upload native image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cats-${{ matrix.os }} | |
path: target/cats-runner |