Skip to content

Test with GHC 9.10.1, drop 9.4.x #135

Test with GHC 9.10.1, drop 9.4.x

Test with GHC 9.10.1, drop 9.4.x #135

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@v15
build-linux:
runs-on: ubuntu-latest
needs: ormolu
strategy:
matrix:
cabal: ["3.10"]
ghc: ["9.6.5", "9.8.2", "9.10.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/[email protected]
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 && git diff --exit-code --color=always
- run: cabal build $CONFIG
- run: cabal test $CONFIG
- run: cabal haddock $CONFIG
- run: cabal sdist
build-windows:
runs-on: windows-latest
needs: ormolu
strategy:
matrix:
cabal: ["3.10"]
ghc: ["9.6.5", "9.8.2", "9.10.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/[email protected]
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 && git diff --exit-code --color=always
- run: cabal build $CONFIG
- run: cabal test $CONFIG
- run: cabal haddock $CONFIG
- run: cabal sdist