Skip to content

Commit

Permalink
Workaround CI (haskell-actions/setup#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Jan 11, 2024
1 parent 381441f commit 6ab9cfb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
name: Bootstrap ${{ matrix.os }} ghc-${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
steps:
- name: Work around XDG directories existence (haskell-actions/setup#62)
if: ${{ runner.os == 'macOS' }}
run: |
rm -rf ~/.config/cabal
rm -rf ~/.cache/cabal
- uses: actions/cache@v3
name: Cache the downloads
id: bootstrap-cache
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ jobs:

steps:

- name: Work around XDG directories existence (haskell-actions/setup#62)
if: ${{ runner.os == 'macOS' }}
run: |
rm -rf ~/.config/cabal
rm -rf ~/.cache/cabal
- uses: actions/checkout@v4

# See https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#hackage-revisions
Expand Down Expand Up @@ -281,6 +287,12 @@ jobs:
ghc: ${{ fromJSON (needs.validate.outputs.GHC_FOR_RELEASE) }}

steps:
- name: Work around XDG directories existence (haskell-actions/setup#62)
if: ${{ runner.os == 'macOS' }}
run: |
rm -rf ~/.config/cabal
rm -rf ~/.cache/cabal
- uses: actions/checkout@v4

# See https://github.com/haskell/cabal/pull/8739
Expand Down

0 comments on commit 6ab9cfb

Please sign in to comment.