Skip to content

Support ghc9.4

Support ghc9.4 #3

Workflow file for this run

on: [push, pull_request]
name: ci
jobs:
build:
name: GHC ${{ matrix.ghc-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ghc: ["9.2", "9.4"]
cabal: ["3.8"]
avx_flag: ["", '--constraint="Z-Data +use-avx2"']
env:
CONFIG: "--enable-tests --enable-benchmarks"
steps:
- name: CPU info
run: |
sudo apt-get install cpuid
cpuid
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup Haskell
uses: haskell-actions/setup@v2
id: setup-haskell-cabal # <--- give it a name for later cache usage
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: |
cabal update
cabal freeze ${{ matrix.avx_flag }}
- uses: actions/cache@v2
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- run: |
cabal configure ${{ matrix.avx_flag }} $CONFIG
cabal build $CONFIG
- run: |
cabal test --test-show-details=direct
- run: |
cabal haddock
cabal check
cabal sdist