9
9
build :
10
10
strategy :
11
11
matrix :
12
- os : [ubuntu-latest, macos-latest, macos-latest-xlarge]
13
12
include :
14
- - os : ubuntu-latest
15
- binary-name : kl-linux-amd64
16
- - os : macos-latest
17
- binary-name : kl-macos-amd64
18
- - os : macos-latest-xlarge
19
- binary-name : kl-macos-arm64
13
+ - arch : linux-amd64
14
+ runs-on : ubuntu-latest
15
+ - arch : linux-arm64
16
+ runs-on : arm-c8
17
+ - arch : macos-amd64
18
+ runs-on : macos-latest
19
+ - arch : macos-arm64
20
+ runs-on : macos-latest-xlarge
20
21
21
22
env :
22
23
GITHUB_USERNAME : ${{ secrets.ORG_GITHUB_ACTOR }}
23
24
GITHUB_TOKEN : ${{ secrets.ORG_GITHUB_TOKEN }}
24
25
25
- runs-on : ${{ matrix.os }}
26
+ runs-on : ${{ matrix.runs-on }}
26
27
steps :
27
28
- name : Checkout git repo
28
29
uses : actions/checkout@v2
@@ -32,38 +33,34 @@ jobs:
32
33
- name : Fetch Tags
33
34
run : git fetch --tags origin
34
35
35
- - uses : actions /setup-java@v2
36
+ - uses : graalvm /setup-graalvm@v1
36
37
with :
37
- distribution : ' temurin'
38
- java-version : 21
38
+ java-version : ' 22'
39
+ distribution : ' graalvm'
40
+ github-token : ${{ secrets.GITHUB_TOKEN }}
39
41
40
42
- uses : extractions/setup-just@v1
41
43
-
uses :
DeLaGuardo/[email protected]
42
44
with :
43
45
cli : latest
44
46
45
- - uses : graalvm/setup-graalvm@v1
46
- with :
47
- java-version : ' 21'
48
- distribution : ' graalvm'
49
- github-token : ${{ secrets.GITHUB_TOKEN }}
50
-
51
47
- name : Configure Auth
52
48
run : |
49
+ mkdir -p ~/.m2/
53
50
cp ./build/settings.xml ~/.m2/settings.xml
54
51
55
52
- name : Build Native Image
56
53
run : just build-native
57
54
58
55
- name : Pack binary
59
56
run : |
60
- tar -czf ${{ matrix.binary-name }}.tar.gz -C ./target kl
57
+ tar -czf kl- ${{ matrix.arch }}.tar.gz -C ./target kl
61
58
62
59
- uses : actions/upload-artifact@v3
63
60
with :
64
- name : kl-native-images
61
+ name : binaries
65
62
if-no-files-found : error
66
- path : ${{ matrix.binary-name }}.tar.gz
63
+ path : kl- ${{ matrix.arch }}.tar.gz
67
64
68
65
release :
69
66
runs-on : ubuntu-latest
75
72
- name : Download Binary Artifacts
76
73
uses : actions/download-artifact@v2
77
74
with :
78
- name : kl-native-images
75
+ name : binaries
79
76
path : bin
80
77
81
78
- name : Calculate checksums
86
83
87
84
mv checksums.txt bin/checksums.txt
88
85
89
- - uses : actions/setup-java@v2
90
- with :
91
- distribution : ' temurin'
92
- java-version : 21
93
-
94
86
- name : Release
95
87
uses : softprops/action-gh-release@v1
96
88
if : startsWith(github.ref, 'refs/tags/')
0 commit comments