Skip to content

Commit

Permalink
CI: Install hdf5@1.8 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 16, 2022
1 parent de5fdb9 commit de2f301
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ jobs:
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update
sudo apt-get install --yes build-essential pkg-config libhdf5-dev
fi
if [ "$RUNNER_OS" == "macOS" ]; then
elif [ "$RUNNER_OS" == "macOS" ]; then
# https://github.com/h5py/h5py/issues/1800#issuecomment-1124193511
HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5
export HDF5_DIR="$(brew --prefix hdf5)";
HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5@1.8
export HDF5_DIR="$(brew --prefix hdf5)"
echo 'export PATH="/usr/local/opt/hdf5@1.8/bin:$PATH"' >> /Users/runner/.bash_profile
poetry run pip install --no-binary=h5py h5py
fi
Expand Down

0 comments on commit de2f301

Please sign in to comment.