name: build and test on ubuntu
on: [push]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
ghc: ['9.6', '9.4', '9.2']
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.0.0.0' # Exact version of Cabal -
- name: install hdf5
run: sudo apt-get install -y libhdf5-dev
- name: build and test with cabal
run: cabal test
This works for ghc-9.6 and ghc-9.4. With ghc-9.2, however, it fails with:
dist-newstyle/build/x86_64-linux/ghc-9.2.8/hdf5-1.8.11/t/hdf5-test/build/hdf5-test/hdf5-test: error while loading shared libraries: libffi.so.7: cannot open shared object file: No such file or directory
Is there a way to solve this? And can anyone explain the error?
The main issues with building GHC stuff downstream at the moment is:
there’s no github CI to build GHC yet (my private runners are on GH, for various reasons)
the test suite is not run, because
it’s incredibly flaky
the test bindist is constantly broken (running the test suite in the same env that GHC was built is wrong, but that’s what GHC is currently doing on gitlab)