From a4b91527d25322eecb5ad8c5a127a8f611c53ea8 Mon Sep 17 00:00:00 2001 From: Feda Curic Date: Mon, 25 Nov 2024 12:29:48 +0100 Subject: [PATCH] Fix HDF5 installation on macOS runners --- .github/workflows/testing.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 69238db02..9fca6583b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -30,7 +30,13 @@ jobs: - name: Install HDF5 source files if: runner.os == 'macOS' - run: brew install hdf5 + # macOS needs special handling for pkg-config/pkgconf conflict + # HDF5 depends on pkgconf but homebrew comes with pkg-config pre-installed + # We need to unlink pkg-config and force link pkgconf to avoid CI failures + run: | + brew unlink pkg-config@0.29.2 || true + brew install hdf5 + brew link --overwrite pkgconf - uses: actions/setup-python@v5 with: