You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by si...@apache.org on 2023/08/06 13:36:47 UTC

[incubator-opendal] branch ci/speed-up-haskell updated: update cache when cabal config file changed

This is an automated email from the ASF dual-hosted git repository.

silver pushed a commit to branch ci/speed-up-haskell
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/ci/speed-up-haskell by this push:
     new c85009e78 update cache when cabal config file changed
c85009e78 is described below

commit c85009e78d29c757f4ae33cfa07b39d741f5d7fd
Author: silver-ymz <yi...@gmail.com>
AuthorDate: Sun Aug 6 21:36:35 2023 +0800

    update cache when cabal config file changed
    
    Signed-off-by: silver-ymz <yi...@gmail.com>
---
 .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 ee6120ab2..5274dbe4f 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