@@ -218,8 +218,9 @@ jobs:
218
218
219
219
strategy :
220
220
matrix :
221
- ghc : ['9.4.8']
222
221
extra-ghc : ['8.4.4', '8.2.2', '8.0.2']
222
+ # # GHC 7.10.3 does not install on ubuntu-22.04 with ghcup.
223
+ # # Older GHCs are not supported by ghcup in the first place.
223
224
fail-fast : false
224
225
225
226
steps :
@@ -231,32 +232,18 @@ jobs:
231
232
sudo apt-get update
232
233
sudo apt-get install libncurses5 libtinfo5
233
234
234
- # # See https://github.com/haskell/cabal/pull/8739
235
- # - name: Sudo chmod to permit ghcup to update its cache
236
- # run: |
237
- # sudo ls -lah /usr/local/.ghcup/cache
238
- # sudo mkdir -p /usr/local/.ghcup/cache
239
- # sudo ls -lah /usr/local/.ghcup/cache
240
- # sudo chown -R $USER /usr/local/.ghcup
241
- # sudo chmod -R 777 /usr/local/.ghcup
242
-
243
235
- name : Install extra compiler
244
236
run : ghcup install ghc ${{ matrix.extra-ghc }}
245
237
246
238
- name : GHCup logs
247
239
if : always()
248
240
run : cat /usr/local/.ghcup/logs/*
249
241
250
- # - uses: haskell-actions/setup@v2
251
- # with:
252
- # ghc-version: ${{ matrix.extra-ghc }}
253
- # cabal-version: latest
254
- # cabal-update: false
255
-
256
- - uses : haskell-actions/setup@v2
242
+ - name : Install primary compiler
243
+ uses : haskell-actions/setup@v2
257
244
id : setup-haskell
258
245
with :
259
- ghc-version : ${{ matrix.ghc }}
246
+ ghc-version : ${{ env.GHC_FOR_RELEASE }}
260
247
cabal-version : latest
261
248
262
249
- name : GHC versions
@@ -272,8 +259,8 @@ jobs:
272
259
path : |
273
260
${{ steps.setup-haskell.outputs.cabal-store }}
274
261
dist-*
275
- key : ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
276
- restore-keys : ${{ runner.os }}-${{ matrix.ghc }}-
262
+ key : ${{ runner.os }}-${{ env.GHC_FOR_RELEASE }}-${{ github.sha }}
263
+ restore-keys : ${{ runner.os }}-${{ env.GHC_FOR_RELEASE }}-
277
264
278
265
- name : Validate build
279
266
run : sh validate.sh ${{ env.COMMON_FLAGS }} -s build
0 commit comments