File tree 1 file changed +22
-4
lines changed 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 31
31
with :
32
32
go-version : ' 1.20'
33
33
cache : true
34
- - name : Cache LLVM source
35
- uses : actions/cache@v3
34
+ - name : Restore cached LLVM source
35
+ uses : actions/cache/restore @v3
36
36
id : cache-llvm-source
37
37
with :
38
38
key : llvm-source-15-windows-v2
45
45
- name : Download LLVM source
46
46
if : steps.cache-llvm-source.outputs.cache-hit != 'true'
47
47
run : make llvm-source
48
- - name : Cache LLVM build
49
- uses : actions/cache@v3
48
+ - name : Save cached LLVM source
49
+ uses : actions/cache/save@v3
50
+ if : always()
51
+ with :
52
+ key : llvm-source-15-windows-v2
53
+ path : |
54
+ llvm-project/clang/lib/Headers
55
+ llvm-project/clang/include
56
+ llvm-project/compiler-rt
57
+ llvm-project/lld/include
58
+ llvm-project/llvm/include
59
+ - name : Restore cached LLVM build
60
+ uses : actions/cache/restore@v3
50
61
id : cache-llvm-build
51
62
with :
52
63
key : llvm-build-15-windows-v3
62
73
make llvm-build CCACHE=OFF
63
74
# Remove unnecessary object files (to reduce cache size).
64
75
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
76
+ - name : Save cached LLVM build
77
+ uses : actions/cache/save@v3
78
+ id : cache-llvm-build
79
+ if : always()
80
+ with :
81
+ key : llvm-build-15-windows-v3
82
+ path : llvm-build
65
83
- name : Cache wasi-libc sysroot
66
84
uses : actions/cache@v3
67
85
id : cache-wasi-libc
You can’t perform that action at this time.
0 commit comments