Skip to content

GraalVM Native Image builds on All platforms #4

GraalVM Native Image builds on All platforms

GraalVM Native Image builds on All platforms #4

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