Skip to content

Commit e056c74

Browse files
committed
try ghcup before setup-haskell
1 parent 2df62f4 commit e056c74

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/validate.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,24 @@ jobs:
225225

226226
- uses: actions/checkout@v4
227227

228+
# # See https://github.com/haskell/cabal/pull/8739
229+
# - name: Sudo chmod to permit ghcup to update its cache
230+
# run: |
231+
# sudo ls -lah /usr/local/.ghcup/cache
232+
# sudo mkdir -p /usr/local/.ghcup/cache
233+
# sudo ls -lah /usr/local/.ghcup/cache
234+
# sudo chown -R $USER /usr/local/.ghcup
235+
# sudo chmod -R 777 /usr/local/.ghcup
236+
237+
- name: Install extra compiler
238+
run: ghcup install ghc ${{ matrix.extra-ghc }}
239+
228240
- uses: haskell-actions/setup@v2
229241
id: setup-haskell
230242
with:
231243
ghc-version: ${{ matrix.ghc }}
232244
cabal-version: latest
233245

234-
- name: Install extra compiler
235-
run: sudo ghcup install ghc ${{ matrix.extra-ghc }}
236-
237246
- name: GHC versions
238247
run: |
239248
ghc --version

0 commit comments

Comments
 (0)