Skip to content

Commit

Permalink
CI cache improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Paradziński authored Nov 21, 2023
1 parent 45dd2e1 commit 00e5585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:

- name: Install dependencies
# If we had an exact cache hit, the dependencies will be up to date.
if: steps.cache.outputs.cache-hit != 'true'
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: cabal build all --only-dependencies

# Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
- name: Save cached dependencies
uses: actions/cache/save@v3
# If we had an exact cache hit, trying to save the cache would error because of key clash.
if: steps.cache.outputs.cache-hit != 'true'
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ steps.cache.outputs.cache-primary-key }}
Expand Down

0 comments on commit 00e5585

Please sign in to comment.