Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-12, ubuntu-latest, windows-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
ghc: [8.10.7, 9.4.8, 9.6.4, 9.8.2]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,10 +29,26 @@ jobs:
- run: yarn run webpack

# Setup toolchains, install ghcup, install ghc, etc...
- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- name: Install GHCup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
shell: bash
env:
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
BOOTSTRAP_HASKELL_MINIMAL: 1

- name: Check GHCup (Windows)
run: |
echo "c:/ghcup/bin" >> $GITHUB_PATH
shell: bash
if: runner.os == 'Windows'

- name: Check GHCup (Unix)
run: |
echo "${HOME}/.ghcup/bin" >> $GITHUB_PATH
shell: bash
if: runner.os != 'Windows'

- name: Toolchain settings
run: |
ghcup upgrade -i -f
Expand Down