Skip to content

Commit

Permalink
Fix GitHub Actions: Stop caching ~/.cabal/packages directory.
Browse files Browse the repository at this point in the history
~/.cabal/packages stores hackage tarballs and those archive is not
needed for already built packages, so it is sufficient to cache ~/.cabal/store.
  • Loading branch information
himura committed Apr 29, 2020
1 parent 1dc617c commit 33a070b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Cache ~/.cabal/packages
uses: actions/cache@v1
with:
path: ~/.cabal/packages
key: ${{ runner.os }}-cabal-packages-cabal${{ matrix.cabal }}-ghc${{ matrix.ghc }}
restore-keys: |
${{ runner.os }}-cabal-packages-cabal${{ matrix.cabal }}-
- name: Cache ~/.cabal/store
uses: actions/cache@v1
with:
Expand All @@ -40,7 +33,7 @@ jobs:
- name: Install dependencies
run: |
cabal v2-update
cabal v2-build all --only-dependencies
cabal v2-build all --only-dependencies --enable-tests
- name: Build
run: cabal v2-build all
- name: Run tests
Expand Down

0 comments on commit 33a070b

Please sign in to comment.