Skip to content

Commit 93163b9

Browse files
Add a mechanism to invalidate ghc cache per matrix entry
1 parent 0230bbd commit 93163b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/haskell.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ jobs:
269269
runner: ubuntu-latest
270270
command: cabal
271271
ghc_version: 9.2.8
272+
ghc_salt: perf-counter-1
272273
# WARNING! cannot use # comments inside pack_options.
273274
# GHCUP_GHC_OPTIONS="-u https://s3.ap-south-1.amazonaws.com/downloads.portal.composewell.com/ghc/ghc-9.2.8-x86_64-unknown-linux.tar.xz"
274275
pack_options: >-
@@ -365,7 +366,7 @@ jobs:
365366
with:
366367
path: |
367368
~/.ghcup
368-
key: ${{ matrix.runner }}-ghcup-${{ env.GHCUP_VERSION }}-${{ matrix.ghc_version }}
369+
key: ${{ matrix.runner }}-${{ matrix.ghc_version }}.${{ matrix.ghc_salt}}
369370

370371
# XXX If we want to invalidate the cache on resolver change we
371372
# should use a separate cache for stack as it should be keyed on

0 commit comments

Comments
 (0)