diff options
| author | John MacFarlane <[email protected]> | 2023-06-27 09:36:28 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-06-27 09:36:28 -0700 |
| commit | 139ba793053a2ac07383e05b5f9a8eddd14134ea (patch) | |
| tree | f1e578c0e704c22a3b0a409287c3a352258935af /.github | |
| parent | f074b03b899cf2ca5e9574e17fcc9ab2a40019ec (diff) | |
Add cabal caching to linux-nix-cabal CI workflow.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 14 |
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" |
