Skip to content

Commit 0ccdb81

Browse files
committed
Use the XDG-adhering path to cache native cabal store
1 parent eb58eb8 commit 0ccdb81

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/wasm.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
id: native-cabal-cache-restore
3232
uses: actions/cache/restore@v4
3333
with:
34-
path: ~/.config/cabal
34+
path: |
35+
~/.config/cabal
36+
~/.cache/cabal
3537
key: native-cabal-${{ env.CI_CACHE_KEY }}
3638

3739
- name: Try to restore cached dist-newstyle
@@ -107,14 +109,16 @@ jobs:
107109
wasm32-wasi-cabal build
108110
cp $(wasm32-wasi-cabal list-bin als) ~/out
109111
110-
- name: Clean up cabal logs
111-
run: rm -rf ~/.config/cabal/logs ~/.ghc-wasm/.cabal/logs
112+
- name: Clean up native/wasm cabal logs
113+
run: rm -rf ~/.cache/cabal/logs ~/.ghc-wasm/.cabal/logs
112114

113115
- name: Cache native cabal
114116
uses: actions/cache/save@v4
115117
if: always()
116118
with:
117-
path: ~/.config/cabal
119+
path: |
120+
~/.config/cabal
121+
~/.cache/cabal
118122
key: ${{ steps.native-cabal-cache-restore.outputs.cache-primary-key }}
119123

120124
- name: Cache ghc-wasm-meta

0 commit comments

Comments
 (0)