Skip to content

Commit

Permalink
ci: add cabal cache logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrorJack committed Nov 15, 2024
1 parent f60f944 commit f1dd390
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
- name: install-nix
uses: DeterminateSystems/nix-installer-action@v16

- name: wasm-cabal-cache
uses: actions/cache@v3
with:
key: nix-build-cache-${{ github.run_id }}
restore-keys: nix-build-cache-
path: |
~/.ghc-wasm/.cabal/store
dist-newstyle
- name: build-frontend
run: |
nix develop --command bash -c "cd frontend && wasm32-wasi-cabal update && exec ./build.sh --debuginfo --low-memory-unused --converge --gufa --flatten --rereloop -Oz"
Expand Down Expand Up @@ -52,6 +61,15 @@ jobs:
- uses: dw-labs-org/dart-sass-gha@v1

- name: wasm-cabal-cache
uses: actions/cache@v3
with:
key: ghcup-build-cache-${{ github.run_id }}
restore-keys: ghcup-build-cache-
path: |
~/.local/state/cabal/store
dist-newstyle
- name: build-frontend
run: |
cd frontend
Expand Down Expand Up @@ -85,6 +103,15 @@ jobs:

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

- name: wasm-cabal-cache
uses: actions/cache@v3
with:
key: non-nix-build-cache-${{ github.run_id }}
restore-keys: non-nix-build-cache-
path: |
~/.ghc-wasm/.cabal/store
dist-newstyle
- name: build-frontend
run: |
cd frontend
Expand Down

0 comments on commit f1dd390

Please sign in to comment.