42
42
uses : actions/cache@v4
43
43
with :
44
44
path : ~/.m2
45
- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
46
- restore-keys : ${{ runner.os }}-m2
45
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}-${{ github.sha }}
47
46
48
47
- name : ' Set release version'
49
48
id : version
71
70
- name : ' Upload version files'
72
71
uses : actions/upload-artifact@v4
73
72
with :
74
- name : artifacts
73
+ name : artifacts-jvm
75
74
path : |
76
75
HEAD
77
76
*_VERSION
81
80
needs : [ version ]
82
81
name : ' Build with Graal on ${{ matrix.os }}'
83
82
strategy :
84
- fail-fast : false
83
+ fail-fast : true
85
84
matrix :
86
85
os : [ ubuntu-latest, macOS-latest, windows-latest ]
87
86
runs-on : ${{ matrix.os }}
@@ -127,7 +126,6 @@ jobs:
127
126
with :
128
127
path : ~/.m2
129
128
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
130
- restore-keys : ${{ runner.os }}-m2
131
129
132
130
- name : ' Create distribution'
133
131
run : mvn -B --file pom.xml -Pnative -DskipTests -pl iot.technology:toolkit-app package -am
@@ -139,8 +137,9 @@ jobs:
139
137
- name : ' Upload build artifact'
140
138
uses : actions/upload-artifact@v4
141
139
with :
142
- name : artifacts
143
- path : toolkit-app/target/*.zip
140
+ name : artifacts-${{ matrix.os }}
141
+ path : |
142
+ toolkit-app/target/*.zip
144
143
145
144
# Collect all executables and release
146
145
release :
@@ -151,6 +150,10 @@ jobs:
151
150
# must read HEAD before checkout
152
151
- name : ' Download all build artifacts'
153
152
uses : actions/download-artifact@v4
153
+ with :
154
+ pattern : artifacts-*
155
+ path : toolkit-app/target
156
+ merge-multiple : true
154
157
155
158
- name : ' Read HEAD ref'
156
159
id : head
@@ -192,7 +195,7 @@ jobs:
192
195
uses : actions/cache@v4
193
196
with :
194
197
path : ~/.m2
195
- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
198
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}-${{ github.sha }}
196
199
restore-keys : ${{ runner.os }}-m2
197
200
198
201
- name : ' Release with JReleaser'
0 commit comments