@@ -35,11 +35,21 @@ jobs:
35
35
with :
36
36
version : ${{ matrix.version }}
37
37
arch : ${{ matrix.arch }}
38
- - uses : julia-actions/cache@v2
38
+ - name : Load Julia packages from cache
39
+ id : julia-cache
40
+ uses : julia-actions/cache@v2
39
41
- uses : julia-actions/julia-buildpkg@v1
40
42
- uses : julia-actions/julia-runtest@v1
41
43
with :
42
44
coverage : false
45
+ - name : Save Julia depot cache on cancel or failure
46
+ id : julia-cache-save
47
+ if : cancelled() || failure()
48
+ uses : actions/cache/save@v4
49
+ with :
50
+ path : |
51
+ ${{ steps.julia-cache.outputs.cache-paths }}
52
+ key : ${{ steps.julia-cache.outputs.cache-key }}
43
53
44
54
test-coverage :
45
55
name : Test Coverage
53
63
with :
54
64
version : 1
55
65
arch : x64
56
- - uses : julia-actions/cache@v2
66
+ - name : Load Julia packages from cache
67
+ id : julia-cache
68
+ uses : julia-actions/cache@v2
57
69
- uses : julia-actions/julia-buildpkg@v1
58
70
- uses : julia-actions/julia-runtest@v1
59
71
env :
66
78
files : lcov.info
67
79
token : ${{ secrets.CODECOV_TOKEN }}
68
80
fail_ci_if_error : false
81
+ - name : Save Julia depot cache on cancel or failure
82
+ id : julia-cache-save
83
+ if : cancelled() || failure()
84
+ uses : actions/cache/save@v4
85
+ with :
86
+ path : |
87
+ ${{ steps.julia-cache.outputs.cache-paths }}
88
+ key : ${{ steps.julia-cache.outputs.cache-key }}
69
89
70
90
Inspector-tests :
71
91
name : NetworkDynamicsInspector.jl Tests
93
113
- uses : julia-actions/setup-julia@v2
94
114
with :
95
115
version : 1
96
- - uses : julia-actions/cache@v2
116
+ - name : Load Julia packages from cache
117
+ id : julia-cache
118
+ uses : julia-actions/cache@v2
97
119
- uses : julia-actions/julia-buildpkg@v1
98
120
with :
99
121
project : NetworkDynamicsInspector
@@ -108,6 +130,14 @@ jobs:
108
130
# files: lcov.info
109
131
# token: ${{ secrets.CODECOV_TOKEN }}
110
132
# fail_ci_if_error: false
133
+ - name : Save Julia depot cache on cancel or failure
134
+ id : julia-cache-save
135
+ if : cancelled() || failure()
136
+ uses : actions/cache/save@v4
137
+ with :
138
+ path : |
139
+ ${{ steps.julia-cache.outputs.cache-paths }}
140
+ key : ${{ steps.julia-cache.outputs.cache-key }}
111
141
112
142
OpPoDyn-test :
113
143
name : OpPoDyn.jl test - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -131,7 +161,9 @@ jobs:
131
161
version : ${{ matrix.version }}
132
162
arch : ${{ matrix.arch }}
133
163
- uses : julia-actions/julia-buildpkg@v1
134
- - uses : julia-actions/cache@v2
164
+ - name : Load Julia packages from cache
165
+ id : julia-cache
166
+ uses : julia-actions/cache@v2
135
167
- uses : actions/checkout@v4
136
168
with :
137
169
repository : JuliaEnergy/OpPoDyn.jl
@@ -153,3 +185,11 @@ jobs:
153
185
rethrow(e)
154
186
end
155
187
end
188
+ - name : Save Julia depot cache on cancel or failure
189
+ id : julia-cache-save
190
+ if : cancelled() || failure()
191
+ uses : actions/cache/save@v4
192
+ with :
193
+ path : |
194
+ ${{ steps.julia-cache.outputs.cache-paths }}
195
+ key : ${{ steps.julia-cache.outputs.cache-key }}
0 commit comments