Skip to content

Add GHC 9.8 CI job

Add GHC 9.8 CI job #55

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request: {}
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
ghc: ['8.0', '8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6', '9.8']
include:
- os: windows-latest
ghc: 'latest'
- os: macOS-latest
ghc: 'latest'
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
- name: Update cabal package database
run: cabal update
- uses: actions/cache@v3
name: Cache cabal stuff
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Build
run: |
cabal sdist -z -o .
cabal get chimera-*.tar.gz
cd chimera-*/
bld() { cabal build -f-representable; }
bld || bld || bld
bld() { cabal build; }
bld || bld || bld
- name: Test
run: |
bld() { cabal build chimera:tests; }
bld || bld || bld
cabal test --test-show-details=direct
- name: Bench
run: cabal bench --benchmark-options=-l
- name: Haddock
if: ${{ matrix.ghc != '8.0' && matrix.ghc != '8.2' && matrix.ghc != '8.4' }}
run: cabal haddock