Skip to content

Commit 7f25ce7

Browse files
committed
Cache julia depot even on failure
1 parent c1b4f7a commit 7f25ce7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
with:
4949
files: lcov.info
5050
token: ${{ secrets.CODECOV_TOKEN }}
51+
- name: Save Julia depot cache on cancel or failure
52+
id: julia-cache-save
53+
if: cancelled() || failure()
54+
uses: actions/cache/save@v4
55+
with:
56+
path: |
57+
${{ steps.julia-cache.outputs.cache-paths }}
58+
key: ${{ steps.julia-cache.outputs.cache-key }}
5159
- uses: actions/upload-artifact@v4
5260
with:
5361
name: manifest-${{ matrix.os }}
@@ -81,6 +89,14 @@ jobs:
8189
shell: julia --color=yes --project=test {0}
8290
run: |
8391
include(joinpath(pwd(), "test", "runtests.jl"))
92+
- name: Save Julia depot cache on cancel or failure
93+
id: julia-cache-save
94+
if: cancelled() || failure()
95+
uses: actions/cache/save@v4
96+
with:
97+
path: |
98+
${{ steps.julia-cache.outputs.cache-paths }}
99+
key: ${{ steps.julia-cache.outputs.cache-key }}
84100
docs:
85101
name: Documentation
86102
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)