We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37fc6d9 commit 8919ea3Copy full SHA for 8919ea3
1 file changed
.github/workflows/build.yaml
@@ -36,14 +36,19 @@ jobs:
36
cabal update
37
cabal configure --disable-optimization --enable-tests
38
cabal freeze
39
+
40
+ # Exclude the timestamp of Hackage index update from our cache key, to
41
+ # avoid invalidating cache too often.
42
+ # This idea comes from github.com/jaspervdj/hakyll
43
+ sed '/^index-state: /d' cabal.project.freeze > dependencies-versions
44
45
- name: Cache cabal work
46
uses: actions/cache@v4
47
with:
48
path: |
49
dist-newstyle
50
${{ steps.setup-haskell.outputs.cabal-store }}
- key: ${{ runner.os }}-${{ hashFiles('cabal.project.freeze', 'cabal.project.local') }}-cabal-install
51
+ key: ${{ runner.os }}-${{ hashFiles('dependencies-versions', 'cabal.project.local') }}-cabal-install
52
53
- name: Build dependencies
54
run: |
0 commit comments