From c85009e78d29c757f4ae33cfa07b39d741f5d7fd Mon Sep 17 00:00:00 2001 From: silver-ymz Date: Sun, 6 Aug 2023 21:36:35 +0800 Subject: [PATCH] update cache when cabal config file changed Signed-off-by: silver-ymz --- .github/workflows/bindings_haskell.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bindings_haskell.yml b/.github/workflows/bindings_haskell.yml index ee6120ab21f..5274dbe4f00 100644 --- a/.github/workflows/bindings_haskell.yml +++ b/.github/workflows/bindings_haskell.yml @@ -54,7 +54,7 @@ jobs: - name: Restore haskell cache uses: actions/cache/restore@v3 with: - key: ${{ runner.os }}-haskell-${{ github.sha }} + key: ${{ runner.os }}-haskell-${{ hashFiles('**/*.cabal') }}} path: ~/.cabal/store restore-keys: ${{ runner.os }}-haskell- - name: Build & Test @@ -65,5 +65,5 @@ jobs: - name: Save haskell cache uses: actions/cache/save@v3 with: - key: ${{ runner.os }}-haskell-${{ github.sha }} + key: ${{ runner.os }}-haskell-${{ hashFiles('**/*.cabal') }}} path: ~/.cabal/store