Add support for GHC9.6 #127
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
# NOTE: This should be a good reference for github actions w.r.t haskell | ||
# https://markkarpov.com/post/github-actions-for-haskell-ci.html | ||
name: cabal:build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
#branches: | ||
# - main | ||
#types: | ||
# - opened | ||
# - synchronize | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
cabal: ["3.6"] | ||
ghc: ["8.10.7", "9.0.2", "9.2.4", "9.4.5" "9.6.2"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: haskell/actions/setup@v1 | ||
id: setup-haskell-cabal | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
- name: Freeze | ||
run: | | ||
cabal update | ||
cabal configure --enable-tests --test-show-details=direct | ||
cabal freeze | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-cabal | ||
with: | ||
path: | | ||
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
dist-newstyle | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.ghc }}- | ||
- name: Build | ||
run: cabal build | ||
- name: Test | ||
run: cabal test all $CONFIG | ||
- name: Haddock | ||
run: cabal haddock all $CONFIG | ||
- name: SDist | ||
run: cabal sdist all $CONFIG |