diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index af2e49a81e..8cae9cf173 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -91,9 +91,6 @@ jobs: ${{ steps.setup-haskell.outputs.cabal-store }} dist-newstyle key: cache-${{ env.CABAL_CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }} - restore-keys: | - ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}- - cache-${{ env.CABAL_CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }} # Now we install the dependencies. If the cache was found and restored in the previous step, # this should be a no-op, but if the cache key was not found we need to build stuff so we can @@ -102,6 +99,7 @@ jobs: run: cabal build all --enable-tests --only-dependencies -j --ghc-option=-j4 # Always store the cabal cache. + # This can fail (benign failure) if there is already a hash at that key. - name: Cache Cabal store uses: actions/cache/save@v4 with: