From 139ba793053a2ac07383e05b5f9a8eddd14134ea Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 27 Jun 2023 09:36:28 -0700 Subject: Add cabal caching to linux-nix-cabal CI workflow. --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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" -- cgit v1.2.3