Skip to content

Commit c23e9fa

Browse files
committed
ci: fix cache key
1 parent ce6713c commit c23e9fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/stack-build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Configure the build
5454
run: |
55-
echo "with key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}"
55+
echo "with key: ${{ runner.os }}-lts-${{ matrix.stack.lts }}"
5656
5757
stack config set resolver lts-${{ matrix.stack.lts }}
5858
stack build --dry-run
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/cache/restore@v3
6363
id: cache
6464
env:
65-
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
65+
key: ${{ runner.os }}-lts-${{ matrix.stack.lts }}
6666

6767
with:
6868
path: ${{ steps.setup.outputs.stack-root }}
@@ -72,7 +72,8 @@ jobs:
7272
- name: Install dependencies
7373
run: stack build --only-dependencies
7474

75-
# Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
75+
# Cache dependencies already here, so that we do not have to rebuild them
76+
# should the subsequent steps fail.
7677
- name: Save cached dependencies
7778
uses: actions/cache/save@v3
7879
# Caches are immutable, trying to save with the same key would error.

0 commit comments

Comments
 (0)