@@ -39,11 +39,11 @@ jobs:
39
39
path : |
40
40
~/.cache/go-build
41
41
~/go/pkg/mod
42
- - name : Cache LLVM source
43
- uses : actions/cache@v3
42
+ - name : Restore LLVM source cache
43
+ uses : actions/cache/restore @v3
44
44
id : cache-llvm-source
45
45
with :
46
- key : llvm-source-15-linux-alpine-v2
46
+ key : llvm-source-15-linux-alpine-v3
47
47
path : |
48
48
llvm-project/clang/lib/Headers
49
49
llvm-project/clang/include
@@ -53,11 +53,22 @@ jobs:
53
53
- name : Download LLVM source
54
54
if : steps.cache-llvm-source.outputs.cache-hit != 'true'
55
55
run : make llvm-source
56
- - name : Cache LLVM build
57
- uses : actions/cache@v3
56
+ - name : Save LLVM source cache
57
+ uses : actions/cache/save@v3
58
+ if : steps.cache-llvm-source.outputs.cache-hit != 'true'
59
+ with :
60
+ key : ${{ steps.cache-llvm-source.outputs.cache-primary-key }}
61
+ path : |
62
+ llvm-project/clang/lib/Headers
63
+ llvm-project/clang/include
64
+ llvm-project/compiler-rt
65
+ llvm-project/lld/include
66
+ llvm-project/llvm/include
67
+ - name : Restore LLVM build cache
68
+ uses : actions/cache/restore@v3
58
69
id : cache-llvm-build
59
70
with :
60
- key : llvm-build-15-linux-alpine-v3
71
+ key : llvm-build-15-linux-alpine-v4
61
72
path : llvm-build
62
73
- name : Build LLVM
63
74
if : steps.cache-llvm-build.outputs.cache-hit != 'true'
71
82
make llvm-build
72
83
# Remove unnecessary object files (to reduce cache size).
73
84
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
85
+ - name : Save LLVM build cache
86
+ uses : actions/cache/save@v3
87
+ if : steps.cache-llvm-build.outputs.cache-hit != 'true'
88
+ with :
89
+ key : ${{ steps.cache-llvm-build.outputs.cache-primary-key }}
90
+ path : llvm-build
74
91
- name : Cache Binaryen
75
92
uses : actions/cache@v3
76
93
id : cache-binaryen
@@ -168,11 +185,11 @@ jobs:
168
185
run : |
169
186
curl https://wasmtime.dev/install.sh -sSf | bash
170
187
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
171
- - name : Cache LLVM source
172
- uses : actions/cache@v3
188
+ - name : Restore LLVM source cache
189
+ uses : actions/cache/restore @v3
173
190
id : cache-llvm-source
174
191
with :
175
- key : llvm-source-15-linux-asserts-v2
192
+ key : llvm-source-15-linux-asserts-v3
176
193
path : |
177
194
llvm-project/clang/lib/Headers
178
195
llvm-project/clang/include
@@ -182,11 +199,22 @@ jobs:
182
199
- name : Download LLVM source
183
200
if : steps.cache-llvm-source.outputs.cache-hit != 'true'
184
201
run : make llvm-source
185
- - name : Cache LLVM build
186
- uses : actions/cache@v3
202
+ - name : Save LLVM source cache
203
+ uses : actions/cache/save@v3
204
+ if : steps.cache-llvm-source.outputs.cache-hit != 'true'
205
+ with :
206
+ key : ${{ steps.cache-llvm-source.outputs.cache-primary-key }}
207
+ path : |
208
+ llvm-project/clang/lib/Headers
209
+ llvm-project/clang/include
210
+ llvm-project/compiler-rt
211
+ llvm-project/lld/include
212
+ llvm-project/llvm/include
213
+ - name : Restore LLVM build cache
214
+ uses : actions/cache/restore@v3
187
215
id : cache-llvm-build
188
216
with :
189
- key : llvm-build-15-linux-asserts-v3
217
+ key : llvm-build-15-linux-asserts-v4
190
218
path : llvm-build
191
219
- name : Build LLVM
192
220
if : steps.cache-llvm-build.outputs.cache-hit != 'true'
@@ -198,6 +226,12 @@ jobs:
198
226
make llvm-build ASSERT=1
199
227
# Remove unnecessary object files (to reduce cache size).
200
228
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
229
+ - name : Save LLVM build cache
230
+ uses : actions/cache/save@v3
231
+ if : steps.cache-llvm-build.outputs.cache-hit != 'true'
232
+ with :
233
+ key : ${{ steps.cache-llvm-build.outputs.cache-primary-key }}
234
+ path : llvm-build
201
235
- name : Cache Binaryen
202
236
uses : actions/cache@v3
203
237
id : cache-binaryen
@@ -254,11 +288,11 @@ jobs:
254
288
with :
255
289
go-version : ' 1.20'
256
290
cache : true
257
- - name : Cache LLVM source
258
- uses : actions/cache@v3
291
+ - name : Restore LLVM source cache
292
+ uses : actions/cache/restore @v3
259
293
id : cache-llvm-source
260
294
with :
261
- key : llvm-source-15-linux-v2
295
+ key : llvm-source-15-linux-v3
262
296
path : |
263
297
llvm-project/clang/lib/Headers
264
298
llvm-project/clang/include
@@ -268,11 +302,22 @@ jobs:
268
302
- name : Download LLVM source
269
303
if : steps.cache-llvm-source.outputs.cache-hit != 'true'
270
304
run : make llvm-source
271
- - name : Cache LLVM build
272
- uses : actions/cache@v3
305
+ - name : Save LLVM source cache
306
+ uses : actions/cache/save@v3
307
+ if : steps.cache-llvm-source.outputs.cache-hit != 'true'
308
+ with :
309
+ key : ${{ steps.cache-llvm-source.outputs.cache-primary-key }}
310
+ path : |
311
+ llvm-project/clang/lib/Headers
312
+ llvm-project/clang/include
313
+ llvm-project/compiler-rt
314
+ llvm-project/lld/include
315
+ llvm-project/llvm/include
316
+ - name : Restore LLVM build cache
317
+ uses : actions/cache/restore@v3
273
318
id : cache-llvm-build
274
319
with :
275
- key : llvm-build-15-linux-arm-v3
320
+ key : llvm-build-15-linux-arm-v4
276
321
path : llvm-build
277
322
- name : Build LLVM
278
323
if : steps.cache-llvm-build.outputs.cache-hit != 'true'
@@ -286,6 +331,12 @@ jobs:
286
331
make llvm-build CROSS=arm-linux-gnueabihf
287
332
# Remove unnecessary object files (to reduce cache size).
288
333
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
334
+ - name : Save LLVM build cache
335
+ uses : actions/cache/save@v3
336
+ if : steps.cache-llvm-build.outputs.cache-hit != 'true'
337
+ with :
338
+ key : ${{ steps.cache-llvm-build.outputs.cache-primary-key }}
339
+ path : llvm-build
289
340
- name : Cache Binaryen
290
341
uses : actions/cache@v3
291
342
id : cache-binaryen
@@ -354,11 +405,11 @@ jobs:
354
405
with :
355
406
go-version : ' 1.20'
356
407
cache : true
357
- - name : Cache LLVM source
358
- uses : actions/cache@v3
408
+ - name : Restore LLVM source cache
409
+ uses : actions/cache/restore @v3
359
410
id : cache-llvm-source
360
411
with :
361
- key : llvm-source-15-linux-v2
412
+ key : llvm-source-15-linux-v3
362
413
path : |
363
414
llvm-project/clang/lib/Headers
364
415
llvm-project/clang/include
@@ -368,11 +419,22 @@ jobs:
368
419
- name : Download LLVM source
369
420
if : steps.cache-llvm-source.outputs.cache-hit != 'true'
370
421
run : make llvm-source
371
- - name : Cache LLVM build
372
- uses : actions/cache@v3
422
+ - name : Save LLVM source cache
423
+ uses : actions/cache/save@v3
424
+ if : steps.cache-llvm-source.outputs.cache-hit != 'true'
425
+ with :
426
+ key : ${{ steps.cache-llvm-source.outputs.cache-primary-key }}
427
+ path : |
428
+ llvm-project/clang/lib/Headers
429
+ llvm-project/clang/include
430
+ llvm-project/compiler-rt
431
+ llvm-project/lld/include
432
+ llvm-project/llvm/include
433
+ - name : Restore LLVM build cache
434
+ uses : actions/cache/restore@v3
373
435
id : cache-llvm-build
374
436
with :
375
- key : llvm-build-15-linux-arm64-v3
437
+ key : llvm-build-15-linux-arm64-v4
376
438
path : llvm-build
377
439
- name : Build LLVM
378
440
if : steps.cache-llvm-build.outputs.cache-hit != 'true'
@@ -384,6 +446,12 @@ jobs:
384
446
make llvm-build CROSS=aarch64-linux-gnu
385
447
# Remove unnecessary object files (to reduce cache size).
386
448
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
449
+ - name : Save LLVM build cache
450
+ uses : actions/cache/save@v3
451
+ if : steps.cache-llvm-build.outputs.cache-hit != 'true'
452
+ with :
453
+ key : ${{ steps.cache-llvm-build.outputs.cache-primary-key }}
454
+ path : llvm-build
387
455
- name : Cache Binaryen
388
456
uses : actions/cache@v3
389
457
id : cache-binaryen
0 commit comments