I have a GitHub action that looks like this:
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?