Skip to content

Commit 8bc63e4

Browse files
authored
Cache _freeze and .julia even if build fails (#591)
1 parent 29340ee commit 8bc63e4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/preview.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
version: '1.11'
3030

3131
- name: Load Julia packages from cache
32-
uses: julia-actions/cache@v2
32+
id: julia-cache
33+
uses: penelopeysm/julia-cache@main
3334
with:
3435
cache-name: julia-cache;${{ hashFiles('**/Manifest.toml') }}
3536
delete-old-caches: false
@@ -57,12 +58,21 @@ jobs:
5758

5859
- name: Save _freeze folder
5960
id: cache-save
61+
if: always()
6062
uses: actions/cache/save@v4
6163
with:
6264
path: |
6365
./_freeze/
6466
key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }}
6567

68+
- name: Save Julia depot cache
69+
id: julia-cache-save
70+
if: always() && steps.julia-cache.outputs.cache-hit != 'true'
71+
uses: actions/cache/save@v4
72+
with:
73+
path: ${{ steps.julia-cache.outputs.cache-paths }}
74+
key: ${{ steps.julia-cache.outputs.cache-key }}
75+
6676
- name: Deploy to GitHub Pages
6777
uses: JamesIves/github-pages-deploy-action@v4
6878
with:

0 commit comments

Comments
 (0)