Skip to content

Commit 3ea0b7d

Browse files
committed
Initial test to see if Github actions can be used to build graalvm binaries on all platforms
1 parent 25611be commit 3ea0b7d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build-binaries.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: GraalVM Native Image builds on All platforms
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
name: Building CATS on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [macos-latest, windows-latest, ubuntu-latest]
12+
arch: [ amd64, arm64 ]
13+
exclude:
14+
- os: windows-latest
15+
arch: arm64
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: graalvm/setup-graalvm@v1
20+
with:
21+
java-version: '21'
22+
distribution: 'graalvm'
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
native-image-job-reports: 'true'
25+
26+
- name: Build and run CATS
27+
run: |
28+
mvn -B clean package -Pnative -DskipTests=true
29+
30+
- name: Upload native image
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: cats-${{ matrix.os }}
34+
path: target/cats-runner

0 commit comments

Comments
 (0)