GraalVM Native Image builds on All platforms #4
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, macos-13, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '21' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Display OS Arch | |
run: uname -p | |
- name: Build and run CATS | |
run: | | |
./mvnw -B clean --file pom.xml | |
./mvnw -B package --file pom.xml -Pnative -DskipTests=true | |
- name: Upload native image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cats-${{ matrix.os }}-${{ matrix.arch }} | |
path: target/cats-runner |