Skip to content

CI pipeline repair #983

CI pipeline repair

CI pipeline repair #983

Workflow file for this run

name: Linux
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
cabal:
runs-on: ubuntu-24.04
strategy:
matrix:
versions:
# latest
- ghc: latest
cabal: latest
args: --allow-newer=base,template-haskell
experimental: true
# a bit newer
- ghc: 9.8.2
cabal: 3.12.1.0
args: --allow-newer=base,template-haskell
experimental: false
# ghcup recommended
- ghc: 9.4.8
cabal: 3.12.1.0
args: --allow-newer=base,template-haskell
experimental: false
# debian stable
- ghc: 9.0.2
cabal: 3.4.1.0
args: --allow-newer=base,template-haskell
experimental: false
## 8.x
- ghc: 8.10.7
cabal: 3.6.2.0-p1
args: --allow-newer=base,template-haskell
experimental: false
- ghc: 8.8.4
cabal: 3.6.2.0-p1
args: --allow-newer=base,template-haskell
experimental: false
- ghc: 8.6.5
cabal: 3.6.2.0-p1
args: --allow-newer=base,template-haskell
experimental: false
continue-on-error: ${{ matrix.versions.experimental }}
name: cabal ${{ matrix.versions.cabal }} - ghc ${{ matrix.versions.ghc }}
steps:
- uses: actions/checkout@v4
- name: cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: cabal-${{ runner.os }}-${{ matrix.versions.ghc }}
- name: install cabal and ghc
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.versions.ghc }}
cabal-version: ${{ matrix.versions.cabal }}
- name: update
run: cabal v2-update
- name: build
run: cabal v2-build ${{ matrix.versions.args }} --enable-tests --enable-benchmarks all
- name: test
run: cabal v2-test ${{ matrix.versions.args }} --enable-tests --enable-benchmarks all