@@ -17,18 +17,17 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Checkout
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
- name : Setup Golang
22
- uses : actions/setup-go@v4
22
+ uses : actions/setup-go@v5
23
23
with :
24
24
go-version-file : ' go.work'
25
25
cache-dependency-path : " **/*.sum"
26
26
- name : Build Contrib
27
27
run : |
28
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b /usr/local/bin v1.54.2
29
28
make -e DOCKER=false nydusify-release
30
29
- name : Upload Nydusify
31
- uses : actions/upload-artifact@master
30
+ uses : actions/upload-artifact@v4
32
31
with :
33
32
name : nydusify-artifact
34
33
path : contrib/nydusify/cmd/nydusify
@@ -37,18 +36,18 @@ jobs:
37
36
runs-on : ubuntu-latest
38
37
steps :
39
38
- name : Checkout
40
- uses : actions/checkout@v3
39
+ uses : actions/checkout@v4
41
40
- name : Rust Cache
42
- uses : Swatinem/rust-cache@v2.7.0
41
+ uses : Swatinem/rust-cache@v2
43
42
with :
44
43
cache-on-failure : true
45
44
shared-key : Linux-cargo-amd64
45
+ - uses : dsherret/rust-toolchain-file@v1
46
46
- name : Build Nydus
47
47
run : |
48
- rustup component add rustfmt clippy
49
- make
48
+ make release
50
49
- name : Upload Nydus Binaries
51
- uses : actions/upload-artifact@master
50
+ uses : actions/upload-artifact@v4
52
51
with :
53
52
name : nydus-artifact
54
53
path : |
@@ -85,14 +84,14 @@ jobs:
85
84
tag : 8-al2022-jdk
86
85
steps :
87
86
- name : Checkout
88
- uses : actions/checkout@v3
87
+ uses : actions/checkout@v4
89
88
- name : Download Nydus
90
- uses : actions/download-artifact@master
89
+ uses : actions/download-artifact@v4
91
90
with :
92
91
name : nydus-artifact
93
92
path : target/release
94
93
- name : Download Nydusify
95
- uses : actions/download-artifact@master
94
+ uses : actions/download-artifact@v4
96
95
with :
97
96
name : nydusify-artifact
98
97
path : contrib/nydusify/cmd
@@ -107,7 +106,7 @@ jobs:
107
106
export SNAPSHOTTER=overlayfs
108
107
sudo -E make smoke-benchmark
109
108
- name : Save BenchMark Result
110
- uses : actions/upload-artifact@v3
109
+ uses : actions/upload-artifact@v4
111
110
with :
112
111
name : benchmark-oci-${{ matrix.image }}
113
112
path : smoke/${{ matrix.image }}-oci.json
@@ -132,14 +131,14 @@ jobs:
132
131
tag : 8-al2022-jdk
133
132
steps :
134
133
- name : Checkout
135
- uses : actions/checkout@v3
134
+ uses : actions/checkout@v4
136
135
- name : Download Nydus
137
- uses : actions/download-artifact@master
136
+ uses : actions/download-artifact@v4
138
137
with :
139
138
name : nydus-artifact
140
139
path : target/release
141
140
- name : Download Nydusify
142
- uses : actions/download-artifact@master
141
+ uses : actions/download-artifact@v4
143
142
with :
144
143
name : nydusify-artifact
145
144
path : contrib/nydusify/cmd
@@ -153,7 +152,7 @@ jobs:
153
152
export BENCHMARK_METRIC_FILE=${{ matrix.image }}-fsversion-v5.json
154
153
sudo -E make smoke-benchmark
155
154
- name : Save BenchMark Result
156
- uses : actions/upload-artifact@v3
155
+ uses : actions/upload-artifact@v4
157
156
with :
158
157
name : benchmark-fsversion-v5-${{ matrix.image }}
159
158
path : smoke/${{ matrix.image }}-fsversion-v5.json
@@ -178,14 +177,14 @@ jobs:
178
177
tag : 8-al2022-jdk
179
178
steps :
180
179
- name : Checkout
181
- uses : actions/checkout@v3
180
+ uses : actions/checkout@v4
182
181
- name : Download Nydus
183
- uses : actions/download-artifact@master
182
+ uses : actions/download-artifact@v4
184
183
with :
185
184
name : nydus-artifact
186
185
path : target/release
187
186
- name : Download Nydusify
188
- uses : actions/download-artifact@master
187
+ uses : actions/download-artifact@v4
189
188
with :
190
189
name : nydusify-artifact
191
190
path : contrib/nydusify/cmd
@@ -199,7 +198,7 @@ jobs:
199
198
export BENCHMARK_METRIC_FILE=${{ matrix.image }}-fsversion-v6.json
200
199
sudo -E make smoke-benchmark
201
200
- name : Save BenchMark Result
202
- uses : actions/upload-artifact@v3
201
+ uses : actions/upload-artifact@v4
203
202
with :
204
203
name : benchmark-fsversion-v6-${{ matrix.image }}
205
204
path : smoke/${{ matrix.image }}-fsversion-v6.json
@@ -224,14 +223,14 @@ jobs:
224
223
tag : 8-al2022-jdk
225
224
steps :
226
225
- name : Checkout
227
- uses : actions/checkout@v3
226
+ uses : actions/checkout@v4
228
227
- name : Download Nydus
229
- uses : actions/download-artifact@master
228
+ uses : actions/download-artifact@v4
230
229
with :
231
230
name : nydus-artifact
232
231
path : target/release
233
232
- name : Download Nydusify
234
- uses : actions/download-artifact@master
233
+ uses : actions/download-artifact@v4
235
234
with :
236
235
name : nydusify-artifact
237
236
path : contrib/nydusify/cmd
@@ -245,7 +244,7 @@ jobs:
245
244
export BENCHMARK_METRIC_FILE=${{ matrix.image }}-zran.json
246
245
sudo -E make smoke-benchmark
247
246
- name : Save BenchMark Result
248
- uses : actions/upload-artifact@v3
247
+ uses : actions/upload-artifact@v4
249
248
with :
250
249
name : benchmark-zran-${{ matrix.image }}
251
250
path : smoke/${{ matrix.image }}-zran.json
@@ -270,30 +269,27 @@ jobs:
270
269
tag : 8-al2022-jdk
271
270
steps :
272
271
- name : Checkout
273
- uses : actions/checkout@v3
272
+ uses : actions/checkout@v4
274
273
- name : Download benchmark-oci
275
- uses : actions/download-artifact@v3
274
+ uses : actions/download-artifact@v4
276
275
with :
277
276
name : benchmark-oci-${{ matrix.image }}
278
277
path : benchmark-result
279
278
- name : Download benchmark-fsversion-v5
280
- uses : actions/download-artifact@v3
279
+ uses : actions/download-artifact@v4
281
280
with :
282
281
name : benchmark-fsversion-v5-${{ matrix.image }}
283
282
path : benchmark-result
284
283
- name : Download benchmark-fsversion-v6
285
- uses : actions/download-artifact@v3
284
+ uses : actions/download-artifact@v4
286
285
with :
287
286
name : benchmark-fsversion-v6-${{ matrix.image }}
288
287
path : benchmark-result
289
288
- name : Download benchmark-zran
290
- uses : actions/download-artifact@v3
289
+ uses : actions/download-artifact@v4
291
290
with :
292
291
name : benchmark-zran-${{ matrix.image }}
293
292
path : benchmark-result
294
- - uses : geekyeggo/delete-artifact@v2
295
- with :
296
- name : " *-${{matrix.image}}"
297
293
- name : Benchmark Summary
298
294
run : |
299
295
case ${{matrix.image}} in
0 commit comments