Skip to content

Commit

Permalink
Fix for missing hits into cache (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Paradziński authored and jespercockx committed Nov 21, 2023
1 parent cdb3c7a commit 6b3d975
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ jobs:
name: agda2scheme
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checks-out repository
uses: actions/checkout@v4

- name: Set up GHC
uses: haskell-actions/setup@v2
Expand Down Expand Up @@ -34,14 +35,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 6b3d975

Please sign in to comment.