From c5c262fa1df0edb6680fab89021cefb089a3a934 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 17 Mar 2022 21:28:00 +0100 Subject: [PATCH] Use experimental ghcup in CI --- .github/workflows/test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e52e3fa6..9f8155e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,17 @@ 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' @@ -35,6 +44,13 @@ jobs: 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.