Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 085374e

Browse files
committed
ci: add cabal cache logic
1 parent 56bb6db commit 085374e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
- name: install-nix
2121
uses: DeterminateSystems/nix-installer-action@v16
2222

23+
- name: wasm-cabal-cache
24+
uses: actions/cache@v3
25+
with:
26+
key: nix-build-cache-${{ github.run_id }}
27+
restore-keys: nix-build-cache-
28+
path: |
29+
~/.ghc-wasm/.cabal/store
30+
dist-newstyle
31+
2332
- name: build-frontend
2433
run: |
2534
nix develop --command bash -c "cd frontend && wasm32-wasi-cabal update && exec ./build.sh --low-memory-unused --converge --gufa --flatten --rereloop -Oz"
@@ -52,6 +61,15 @@ jobs:
5261
5362
- uses: dw-labs-org/dart-sass-gha@v1
5463

64+
- name: wasm-cabal-cache
65+
uses: actions/cache@v3
66+
with:
67+
key: ghcup-build-cache-${{ github.run_id }}
68+
restore-keys: ghcup-build-cache-
69+
path: |
70+
~/.local/state/cabal/store
71+
dist-newstyle
72+
5573
- name: build-frontend
5674
run: |
5775
cd frontend
@@ -85,6 +103,15 @@ jobs:
85103

86104
- uses: dw-labs-org/dart-sass-gha@v1
87105

106+
- name: wasm-cabal-cache
107+
uses: actions/cache@v3
108+
with:
109+
key: non-nix-build-cache-${{ github.run_id }}
110+
restore-keys: non-nix-build-cache-
111+
path: |
112+
~/.ghc-wasm/.cabal/store
113+
dist-newstyle
114+
88115
- name: build-frontend
89116
run: |
90117
cd frontend

0 commit comments

Comments
 (0)