Skip to content

Commit 8e0d59a

Browse files
committed
Use experimental ghcup in CI
1 parent 6f2bbc0 commit 8e0d59a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
build:
1111
strategy:
12+
fail-fast: false
1213
matrix:
1314
os: [macos-11, ubuntu-latest, windows-latest]
1415
ghc: [9.0.1, 8.10.4]
@@ -26,15 +27,31 @@ jobs:
2627
with:
2728
ghc-version: ${{ matrix.ghc }}
2829
run: xvfb-run -s '-screen 0 640x480x16' -a npm test
30+
- name: "Install ghcup on linux"
31+
if: runner.os == 'Linux'
32+
run: |
33+
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-linux-ghcup-0.1.17.5
34+
chmod +x x86_64-linux-ghcup-0.1.17.5
35+
cp x86_64-linux-ghcup-0.1.17.5 "$(which ghcup)"
2936
- name: "Install `tree` for MacOs"
3037
run: |
38+
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-apple-darwin-ghcup-0.1.17.5
39+
chmod +x x86_64-apple-darwin-ghcup-0.1.17.5
40+
cp x86_64-apple-darwin-ghcup-0.1.17.5 "$(which ghcup)"
3141
brew update
3242
brew install tree
3343
if: runner.os == 'macOS'
3444
- name: "Install `tree` for Windows"
3545
run: |
3646
choco install tree
3747
if: runner.os == 'Windows'
48+
- name: "Install ghcup"
49+
run: |
50+
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-mingw64-ghcup-0.1.17.5.exe
51+
chmod +x x86_64-mingw64-ghcup-0.1.17.5.exe
52+
cp x86_64-mingw64-ghcup-0.1.17.5.exe /c/ghcup/bin/ghcup.exe
53+
if: runner.os == 'Windows'
54+
shell: bash
3855
# Pre-fetch HLS binaries before the tests because otherwise
3956
# we run into timeouts. Downloading takes longer, since we download
4057
# per HLS version one HLS binary per GHC version.

0 commit comments

Comments
 (0)