Skip to content

Commit 80f7029

Browse files
authored
Merge pull request #8760 from haskell/mergify/bp/3.10/pr-8749
Work around ghcup cache woes also in our dogfooding CI scripts (backport #8749)
2 parents 647d863 + b0bda36 commit 80f7029

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/validate.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,16 @@ jobs:
274274
steps:
275275
- uses: actions/checkout@v3
276276

277+
# See https://github.com/haskell/cabal/pull/8739
278+
- name: Sudo chmod to permit ghcup to update its cache
279+
run: |
280+
if [[ "${{ runner.os }}" == "Linux" ]]; then
281+
sudo ls -lah /usr/local/.ghcup/cache
282+
sudo mkdir -p /usr/local/.ghcup/cache
283+
sudo ls -lah /usr/local/.ghcup/cache
284+
sudo chown -R $USER /usr/local/.ghcup
285+
sudo chmod -R 777 /usr/local/.ghcup
286+
fi
277287
- uses: haskell/actions/setup@v2
278288
id: setup-haskell
279289
with:

0 commit comments

Comments
 (0)