support ghc 9.4 and 9.6 #80
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
ghc: | |
- "9.2.8" | |
- "9.4.8" | |
- "9.6.4" | |
exclude: | |
# precompiled 9.0 and 9.2 don't have docs on MacOS | |
- os: macos-latest | |
ghc: "9.2.4" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 | |
ghcup install cabal 3.10.2.1 --set | |
cabal update | |
- name: Build | |
run: | | |
cabal build all --enable-tests | |
- name: Run Tests | |
run: cabal test --test-show-details=always all | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
limit-access-to-actor: true | |
post_job: | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- run: | | |
echo "jobs info: ${{ toJSON(needs) }}" | |
- if: contains(needs.*.result, 'failure') | |
run: exit 1 | |
- if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true' | |
run: exit 1 |