Skip to content

v0.7.2: drop support for old-time, allow latest dependencies #36

v0.7.2: drop support for old-time, allow latest dependencies

v0.7.2: drop support for old-time, allow latest dependencies #36

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
cabal:
name: ${{ matrix.os }} - GHC ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# Check the haddock step below which is limited to a single GHC version!
ghc:
- '9.10'
- '9.8'
- '9.6'
- '9.4'
- '9.2'
- '9.0'
- '8.10'
- '8.8'
- '8.6'
- '8.4'
- '8.2'
- '8.0'
include:
- os: macos-latest
ghc: '9.10'
- os: windows-latest
ghc: '9.10'
steps:
- uses: actions/checkout@v4
- name: Setup Haskell
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc }}
- name: Configure
run: |
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
cabal build all --dry-run
- name: Restore cache
uses: actions/cache/restore@v4
id: cache
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-plan-${{ hashfiles('dist-newstyle/cache/plan.json') }}
restore-keys: |
${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-
- name: Build dependencies
run: cabal build all --dependencies-only
- run: cabal build all
- run: cabal test all
- run: cabal haddock
if: matrix.ghc == '9.8'
- run: cabal check
- run: cabal sdist
- name: Save cache
uses: actions/cache/save@v4
if: always() && steps.cache.outputs.cache-hit != 'true'
with:
key: ${{ steps.cache.outputs.cache-primary-key }}
path: ${{ steps.setup.outputs.cabal-store }}