Skip to content

Commit 5fab9cd

Browse files
committed
ci: use plan.json hash for cache key
1 parent ba6f85a commit 5fab9cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ jobs:
4545
ref: wasm
4646
path: pandoc
4747

48+
- name: gen-plan-json
49+
run: |
50+
pushd pandoc
51+
wasm32-wasi-cabal build pandoc-cli --dry-run
52+
popd
53+
4854
- name: wasm-cabal-cache
49-
uses: actions/cache@v3
55+
uses: actions/cache@v4
5056
with:
51-
key: wasm-cabal-cache-${{ github.run_id }}
57+
key: wasm-cabal-cache-${{ hashFiles('pandoc/dist-newstyle/cache/plan.json') }}
5258
restore-keys: wasm-cabal-cache-
5359
path: |
5460
~/.ghc-wasm/.cabal/store

0 commit comments

Comments
 (0)