Skip to content

Commit 8725277

Browse files
committed
Use Haskell Actions to setup ghcup on all platforms
1 parent 6d71908 commit 8725277

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [macos-latest, ubuntu-latest, windows-latest]
15-
ghc: [8.10.7, 9.0.2, 9.2.8, 9.4.7, 9.6.2]
15+
ghc: [8.10.7, 9.4.7, 9.6.2, 9.8.2]
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- name: Checkout
@@ -28,6 +28,11 @@ jobs:
2828
- run: yarn install --immutable --immutable-cache --check-cache
2929
- run: yarn run webpack
3030

31+
# Setup toolchains, install ghcup, install ghc, etc...
32+
- name: Setup Haskell
33+
uses: haskell-actions/setup@v2
34+
with:
35+
ghc-version: ${{ matrix.ghc }}
3136
- name: Toolchain settings
3237
run: |
3338
ghcup upgrade -i -f
@@ -37,8 +42,8 @@ jobs:
3742
ghcup install stack latest
3843
ghcup install cabal latest
3944
40-
ghcup install ghc ${{matrix.ghc}}
41-
ghcup set ghc ${{matrix.ghc}}
45+
ghcup install ghc ${{ matrix.ghc }}
46+
ghcup set ghc ${{ matrix.ghc }}
4247
4348
ghcup install hls 2.2.0.0
4449
ghcup install hls latest

0 commit comments

Comments
 (0)