Skip to content

Commit 78d5041

Browse files
andreabedinijasagredo
authored andcommitted
Migrate to haskell-actions/setup
As of 2023-09-09, haskell/action/setup is no longer maintained. The comment # latest is mandatory for cabal-testsuite, see #8133 is removed; as the validate job was already fixing a version of cabal-install. (cherry picked from commit 8e09697) # Conflicts: # .github/workflows/validate.yml
1 parent ebf64c5 commit 78d5041

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/validate.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,7 @@ jobs:
5757

5858
- uses: actions/checkout@v3
5959

60-
# See https://github.com/haskell/cabal/pull/8739
61-
- name: Sudo chmod to permit ghcup to update its cache
62-
run: |
63-
if [[ "${{ runner.os }}" == "Linux" ]]; then
64-
sudo ls -lah /usr/local/.ghcup/cache
65-
sudo mkdir -p /usr/local/.ghcup/cache
66-
sudo ls -lah /usr/local/.ghcup/cache
67-
sudo chown -R $USER /usr/local/.ghcup
68-
sudo chmod -R 777 /usr/local/.ghcup
69-
fi
70-
- uses: haskell/actions/setup@v2
60+
- uses: haskell-actions/setup@v2
7161
id: setup-haskell
7262
with:
7363
ghc-version: ${{ matrix.ghc }}
@@ -356,11 +346,12 @@ jobs:
356346
apt-get update
357347
apt-get install -y ghc-${{ matrix.extra-ghc }}-dyn
358348
359-
- uses: haskell/actions/setup@v2
349+
- uses: haskell-actions/setup@v2
360350
id: setup-haskell
361351
with:
362352
ghc-version: ${{ matrix.ghc }}
363-
cabal-version: '3.10.1.0'
353+
# Make sure this bindist works in this old environment
354+
cabal-version: 3.10.1.0
364355

365356
# As we are reusing the cached build dir from the previous step
366357
# the generated artifacts are available here,
@@ -415,7 +406,7 @@ jobs:
415406
sudo chown -R $USER /usr/local/.ghcup
416407
sudo chmod -R 777 /usr/local/.ghcup
417408
fi
418-
- uses: haskell/actions/setup@v2
409+
- uses: haskell-actions/setup@v2
419410
id: setup-haskell
420411
with:
421412
ghc-version: ${{ matrix.ghc }}

0 commit comments

Comments
 (0)