diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 389b2e0..8fafefb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,11 +24,19 @@ jobs: shell: bash steps: - uses: actions/checkout@v3 + - name: Install GHCup on MacOS + if: matrix.os == 'macos-latest' + run: | + curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh + source ~/.ghcup/env + - name: Upgrade GHCup on Ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + ghcup upgrade - name: Install Tools env: GHCUP_CURL_OPTS: "--suppress-connect-headers" run: | - ghcup upgrade ghcup list ghcup rm ghc ${{ matrix.ghc }} || true ghcup install ghc ${{ matrix.ghc }} --set