From 9bd3cc0d3d35b6b8327324c52def48bd48c9a348 Mon Sep 17 00:00:00 2001 From: Junaid Rasheed Date: Fri, 24 Nov 2023 17:30:10 +0000 Subject: [PATCH] Fix caching + I was using the cabal plan as a key, now I use stack files/cabal generated files --- .github/workflows/haskell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index f578812..cf0f64c 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -61,7 +61,7 @@ jobs: id: cache with: path: .stack-work - key: ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-stack-${{ env.STACK_VERSION }}-plan-${{ hashFiles('**/plan.json') }} + key: ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-stack-${{ env.STACK_VERSION }}-deps-${{ hashFiles('**/stack.yaml', '**/package.yaml', '**/simplex-method.cabal') }} restore-keys: | ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-stack-${{ env.STACK_VERSION }}-