This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree 1 file changed +4
-11
lines changed 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -141,14 +141,6 @@ jobs:
141
141
cabal-version : ' latest'
142
142
cabal-update : true
143
143
144
- - name : Installed minor versions of GHC and Cabal
145
- shell : bash
146
- run : |
147
- GHC_VERSION=$(ghc --numeric-version)
148
- CABAL_VERSION=$(cabal --numeric-version)
149
- echo "GHC_VERSION=${GHC_VERSION}" >> "${GITHUB_ENV}"
150
- echo "CABAL_VERSION=${CABAL_VERSION}" >> "${GITHUB_ENV}"
151
-
152
144
- name : Configure the build
153
145
run : |
154
146
cabal configure --enable-tests --enable-benchmarks --disable-documentation
@@ -158,11 +150,12 @@ jobs:
158
150
- name : Restore cached dependencies
159
151
uses : actions/cache/restore@v3
160
152
id : cache
153
+ env :
154
+ key : ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
161
155
with :
162
156
path : ${{ steps.setup.outputs.cabal-store }}
163
- key : ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}-plan-${{ hashFiles('**/plan.json') }}
164
- restore-keys : |
165
- ${{ runner.os }}-ghc-${{ env.GHC_VERSION }}-cabal-${{ env.CABAL_VERSION }}-
157
+ key : ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
158
+ restore-keys : ${{ env.key }}-
166
159
167
160
- name : Install dependencies
168
161
run : cabal build all --only-dependencies
You can’t perform that action at this time.
0 commit comments