Skip to content

Commit

Permalink
CI: do cabal update after restoring cache to aviod mixup due to XDG
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Mar 15, 2023
1 parent 78b680e commit d668620
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.8.1.0'
cabal-update: false

# See the following link for a breakdown of the following step
# https://github.com/haskell/actions/issues/7#issuecomment-745697160
Expand All @@ -87,6 +88,10 @@ jobs:
key: ${{ runner.os }}-${{ matrix.ghc }}-20220419-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-20220419-

- name: cabal update due to https://github.com/haskell/actions/issues/203
run: |
cabal update
- name: Work around git problem https://bugs.launchpad.net/ubuntu/+source/git/+bug/1993586 (cabal PR #8546)
run: |
git config --global protocol.file.allow always
Expand Down

0 comments on commit d668620

Please sign in to comment.