v0.3.0.3: fix for ghc-9.6/base-4.18.1.0 #11
Workflow file for this run
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
name: Haskell CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
cabal: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc: ['8.6.5', '8.8.4','8.10.2', '8.10.3'] | |
cabal: ['3.2.0.0'] | |
os: [ubuntu-latest] | |
exclude: | |
# GHC 8.8+ only works with cabal v3+ | |
- ghc: 8.8.4 | |
cabal: 2.4.1.0 | |
name: cabal / ghc ${{ matrix.ghc }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v1 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- uses: actions/cache@v2.1.3 | |
name: Cache ~/.cabal | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
key: ${{ runner.os }}-${{ matrix.ghc }} | |
- name: Build | |
run: | | |
cabal v2-build all | |
- name: Test | |
run: | | |
cabal v2-test all | |
stack: | |
name: stack / ghc ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
stack: ["2.3.1"] | |
ghc: ["8.10.4"] | |
steps: | |
- uses: actions/checkout@v2 | |
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' | |
- uses: haskell/actions/setup@v1 | |
name: Setup Haskell Stack | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
enable-stack: true | |
stack-version: ${{ matrix.stack }} | |
- uses: actions/cache@v2.1.3 | |
name: Cache ~/.stack | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | |
- name: Build | |
run: | | |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --stack-yaml stack-${{ matrix.ghc }}.yaml | |
- name: Test | |
run: | | |
stack test --system-ghc --stack-yaml stack-${{ matrix.ghc }}.yaml |