-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1 KB
/
imageBuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: GraalVM Native Image builds
on: [push, pull_request]
jobs:
build:
name: Native image on ubuntu-latest
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./game-of-life-native
steps:
- uses: actions/checkout@v4
- uses: jessiscript/setup-graalvm@main
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
native-image-pr-comparison: 'true'
native-image-pr-comparison-parameter: 'analysis results, resource usage'
- name: Get versions
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Build and run game of life
run: mvn -Pnative package
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: nativeImage-ubuntu-latest
path: target/*.jar