Skip to content

Update for GHC 9.8 #298

Update for GHC 9.8

Update for GHC 9.8 #298

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
ormolu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/run-ormolu@v14
build:
runs-on: ubuntu-latest
needs: ormolu
strategy:
matrix:
cabal: ["3.10"]
ghc: ["9.2.8", "9.4.7", "9.6.3", "9.8.1"]
env:
CONFIG: "--enable-tests --enable-benchmarks --flags=dev"
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: cabal update
- run: cabal freeze $CONFIG
- uses: actions/cache@v3.3.1
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-0-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-0-
- run: cabal format
- run: pushd megaparsec-tests && cabal format && popd
- run: git diff --exit-code --color=always
- run: cabal build all $CONFIG
- run: cabal test all $CONFIG
- run: cabal haddock megaparsec $CONFIG
- run: cabal haddock megaparsec-tests $CONFIG
- run: cabal sdist
- run: pushd megaparsec-tests && cabal sdist && popd