Skip to content

Commit 88e2f6a

Browse files
ulysses4evermergify[bot]
authored andcommitted
CI: no need to restore cache before setup-haskell
undo 6bd17fc from #8844; the change was made in response to an issue that was later fixed on the haskell/action side (cherry picked from commit 3b8e6e9) # Conflicts: # .github/workflows/validate.yml
1 parent 1d36e9b commit 88e2f6a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/validate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ jobs:
238238

239239
- uses: actions/checkout@v3
240240

241+
<<<<<<< HEAD
241242
<<<<<<< HEAD
242243
=======
243244
# See the following link for a breakdown of the following step
@@ -254,6 +255,8 @@ jobs:
254255
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-20220419-
255256

256257
>>>>>>> 4f5835509 (CI: no need to exclude caching on Windows anymore)
258+
=======
259+
>>>>>>> 3b8e6e9bf (CI: no need to restore cache before setup-haskell)
257260
# See https://github.com/haskell/cabal/pull/8739
258261
- name: Sudo chmod to permit ghcup to update its cache
259262
run: |
@@ -293,6 +296,17 @@ jobs:
293296
run: |
294297
git config --global protocol.file.allow always
295298
299+
# See the following link for a breakdown of the following step
300+
# https://github.com/haskell/actions/issues/7#issuecomment-745697160
301+
- uses: actions/cache@v3
302+
with:
303+
# validate.sh uses a special build dir
304+
path: |
305+
${{ steps.setup-haskell.outputs.cabal-store }}
306+
dist-*
307+
key: ${{ runner.os }}-${{ matrix.ghc }}-20220419-${{ github.sha }}
308+
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-20220419-
309+
296310
# The '+exe' constraint below is important, otherwise cabal-install
297311
# might decide to build the library but not the executable which is
298312
# what we need.
@@ -410,7 +424,11 @@ jobs:
410424
id: setup-haskell
411425
with:
412426
ghc-version: ${{ matrix.ghc }}
427+
<<<<<<< HEAD
413428
cabal-version: '3.8.1.0'
429+
=======
430+
cabal-version: latest # latest is mandatory for cabal-testsuite, see https://github.com/haskell/cabal/issues/8133
431+
>>>>>>> 3b8e6e9bf (CI: no need to restore cache before setup-haskell)
414432

415433
# As we are reusing the cached build dir from the previous step
416434
# the generated artifacts are available here,

0 commit comments

Comments
 (0)