-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.66 KB
/
build-demo-images.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build Demo Images
on: [ workflow_dispatch, workflow_call ]
jobs:
build-amd64:
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.1
- uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '17'
set-java-home: 'true'
components: 'native-image'
cache: 'maven'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Show versions
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Build native image and launchers
run: mvn package -Pnative
- name: Upload native images
uses: actions/upload-artifact@v3
with:
name: native-launchers-images
path: sample-cli/target/image/**
retention-days: 10
build-macos-aarch64:
runs-on: [self-hosted, macos-aarch64]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.1
- name: Build macos-aarch64 image
run: |
export JAVA_HOME=${GRAALVM_HOME}
mvn clean package -Pnative
- name: Upload native image
uses: actions/upload-artifact@v3
with:
name: native-launchers-images
path: sample-cli/target/image/**
retention-days: 10