Skip to content

Commit

Permalink
WIP - caching sources separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha committed Dec 1, 2021
1 parent dc4787b commit a45fcd4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/cache-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,21 @@ jobs:
echo "package floskell" >> cabal.project
echo " ghc-options: -O0" >> cabal.project
- name: Cache Cabal
uses: actions/cache@v2
env:
cache-name: hackage-sources
with:
path: ${{ env.CABAL_PKGS_DIR }}
key: v2-${{ runner.os }}-${{ matrix.ghc }}-hackage-sources-${{ hashFiles('cabal.project') }}
restore-keys: v2-${{ runner.os }}-${{ matrix.ghc }}-hackage-sources-

- name: Cache Cabal
uses: actions/cache@v2
env:
cache-name: cache-cabal
with:
path: |
${{ steps.HaskEnvSetup.outputs.cabal-store }}
${{ env.CABAL_PKGS_DIR }}
path: ${{ steps.HaskEnvSetup.outputs.cabal-store }}
key: v2-${{ runner.os }}-${{ matrix.ghc }}-build-${{ hashFiles('cabal.project') }}
restore-keys: v2-${{ runner.os }}-${{ matrix.ghc }}-build-

Expand Down

0 comments on commit a45fcd4

Please sign in to comment.