From 3f8fa8c245197a5405dfc34f7769f390d29926d7 Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Tue, 14 Mar 2023 21:56:31 -0400 Subject: [PATCH] CI: do cabal update after restoring cache to aviod mixup due to XDG See https://github.com/haskell/actions/issues/203 --- .github/workflows/validate.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a0db9edd9bc..ab6e01bac85 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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