File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ concurrency:
2222 group : ${{ github.workflow }}-${{ github.ref }}
2323 cancel-in-progress : true
2424
25+ # needed to allow julia-actions/cache to delete old caches that it has created
26+ permissions :
27+ actions : write
28+ contents : read
29+
2530jobs :
2631 test :
2732 timeout-minutes : 60
5863 version : ${{ matrix.version }}
5964 arch : ${{ matrix.arch }}
6065 - uses : julia-actions/cache@v2
66+ id : julia-cache
6167 with :
6268 cache-name : " tests"
6369 - uses : julia-actions/julia-buildpkg@v1
6874 files : lcov.info
6975 token : ${{ secrets.CODECOV_TOKEN }}
7076 continue-on-error : true
77+ - name : Save Julia depot cache on cancel or failure
78+ id : julia-cache-save
79+ if : cancelled() || failure()
80+ uses : actions/cache/save@v4
81+ with :
82+ path : |
83+ ${{ steps.julia-cache.outputs.cache-paths }}
84+ key : ${{ steps.julia-cache.outputs.cache-key }}
You can’t perform that action at this time.
0 commit comments