summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 447b0f878..85ebfdfe0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -147,6 +147,20 @@ jobs:
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
+ - name: Cache cabal global package db
+ id: cabal-global
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.cabal
+ key: ${{ runner.os }}-nix-cabal-global-${{ secrets.CACHE_VERSION }}
+ - name: Cache cabal work
+ id: cabal-local
+ uses: actions/cache@v3
+ with:
+ path: |
+ dist-newstyle
+ key: ${{ runner.os }}-nix-cabal-local-${{ secrets.CACHE_VERSION }}
- run: |
nix-shell --run "cabal update && cabal test --disable-optimization"