Skip to content

Commit

Permalink
Use experimental ghcup in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Mar 17, 2022
1 parent 6f2bbc0 commit c5c262f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,31 @@ jobs:
with:
ghc-version: ${{ matrix.ghc }}
run: xvfb-run -s '-screen 0 640x480x16' -a npm test
- name: "Install ghcup on linux"
if: runner.os == 'Linux'
run: |
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-linux-ghcup-0.1.17.5
chmod +x x86_64-linux-ghcup-0.1.17.5
cp x86_64-linux-ghcup-0.1.17.5 "$(which ghcup)"
- name: "Install `tree` for MacOs"
run: |
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-apple-darwin-ghcup-0.1.17.5
chmod +x x86_64-apple-darwin-ghcup-0.1.17.5
cp x86_64-apple-darwin-ghcup-0.1.17.5 "$(which ghcup)"
brew update
brew install tree
if: runner.os == 'macOS'
- name: "Install `tree` for Windows"
run: |
choco install tree
if: runner.os == 'Windows'
- name: "Install ghcup"
run: |
curl -O https://downloads.haskell.org/ghcup/0.1.17.6-alpha1/x86_64-mingw64-ghcup-0.1.17.5.exe
chmod +x x86_64-mingw64-ghcup-0.1.17.5.exe
cp x86_64-mingw64-ghcup-0.1.17.5.exe /c/ghcup/bin/ghcup.exe
if: runner.os == 'Windows'
shell: bash
# Pre-fetch HLS binaries before the tests because otherwise
# we run into timeouts. Downloading takes longer, since we download
# per HLS version one HLS binary per GHC version.
Expand Down

0 comments on commit c5c262f

Please sign in to comment.