Skip to content

Commit c5c262f

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

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,31 @@ jobs:
2626
with:
2727
ghc-version: ${{ matrix.ghc }}
2828
run: xvfb-run -s '-screen 0 640x480x16' -a npm test
29+
- name: "Install ghcup on linux"
30+
if: runner.os == 'Linux'
31+
run: |
32+
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-linux-ghcup-0.1.17.5
33+
chmod +x x86_64-linux-ghcup-0.1.17.5
34+
cp x86_64-linux-ghcup-0.1.17.5 "$(which ghcup)"
2935
- name: "Install `tree` for MacOs"
3036
run: |
37+
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-apple-darwin-ghcup-0.1.17.5
38+
chmod +x x86_64-apple-darwin-ghcup-0.1.17.5
39+
cp x86_64-apple-darwin-ghcup-0.1.17.5 "$(which ghcup)"
3140
brew update
3241
brew install tree
3342
if: runner.os == 'macOS'
3443
- name: "Install `tree` for Windows"
3544
run: |
3645
choco install tree
3746
if: runner.os == 'Windows'
47+
- name: "Install ghcup"
48+
run: |
49+
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-mingw64-ghcup-0.1.17.5.exe
50+
chmod +x x86_64-mingw64-ghcup-0.1.17.5.exe
51+
cp x86_64-mingw64-ghcup-0.1.17.5.exe /c/ghcup/bin/ghcup.exe
52+
if: runner.os == 'Windows'
53+
shell: bash
3854
# Pre-fetch HLS binaries before the tests because otherwise
3955
# we run into timeouts. Downloading takes longer, since we download
4056
# per HLS version one HLS binary per GHC version.

0 commit comments

Comments
 (0)