File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 52
52
53
53
- name : Configure the build
54
54
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 }}"
56
+ echo "stack root: ${{ steps.setup.outputs.stack-root }}
56
57
57
58
stack config set resolver lts-${{ matrix.stack.lts }}
58
59
stack build --dry-run
@@ -62,17 +63,18 @@ jobs:
62
63
uses : actions/cache/restore@v3
63
64
id : cache
64
65
env :
65
- key : ${{ runner.os }}-ghc -${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
66
+ key : ${{ runner.os }}-lts -${{ matrix.stack.lts }}
66
67
67
68
with :
68
69
path : ${{ steps.setup.outputs.stack-root }}
69
- key : ${{ env.key }}-plan-${{ hashFiles('** /plan.json') }}
70
+ key : ${{ env.key }}-plan-${{ hashFiles('dist-newstyle/cache /plan.json') }}
70
71
restore-keys : ${{ env.key }}-
71
72
72
73
- name : Install dependencies
73
74
run : stack build --only-dependencies
74
75
75
- # Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
76
+ # Cache dependencies already here, so that we do not have to rebuild them
77
+ # should the subsequent steps fail.
76
78
- name : Save cached dependencies
77
79
uses : actions/cache/save@v3
78
80
# Caches are immutable, trying to save with the same key would error.
You can’t perform that action at this time.
0 commit comments