Skip to content

Commit 5d9b015

Browse files
committed
Fix caching for PlutoPDF
1 parent 90fbc82 commit 5d9b015

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/CI.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,26 @@ jobs:
3030
version: "1" # This will automatically pick the latest Julia version
3131

3232
- name: Cache Julia artifacts & such
33-
uses: julia-actions/cache@v1
33+
uses: julia-actions/cache@v2
3434
with:
35-
cache-registries: "true"
35+
# Contains the node .env for PlutoPDF.
36+
# Since it needs to be in sync with the puppeteer cache, we cache it separately.
37+
cache-scratchspaces: false
38+
39+
- name: Set up PlutoPDF caches
40+
uses: actions/cache@v4
41+
with:
42+
path: |
43+
~/.julia/scratchspaces
44+
~/.cache/puppeteer
45+
key: ${{ runner.os }}-plutopdf_cache-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}
3646

3747
# We set up a folder that Pluto can use to cache exported
3848
# notebooks. If the notebook file did not change, then Pluto can
3949
# take the exported file from cache instead of running the
4050
# notebook.
4151
- name: Set up notebook state cache
42-
uses: actions/cache@v3
52+
uses: actions/cache@v4
4353
with:
4454
path: pluto_state_cache
4555
key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }}

0 commit comments

Comments
 (0)