Skip to content

Commit

Permalink
ci: add catch2 deps for cibw, conda and GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 21, 2024
1 parent e67fd70 commit 39cb0ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,26 @@ jobs:
- name: install dependencies
run: |-
sudo apt-get update
sudo apt-get install -y cmake wget ninja-build libblas-dev liblapack-dev liblapacke-dev libboost-all-dev libopenmpi-dev libeigen3-dev libhdf5-dev catch2
sudo apt-get install -y cmake wget ninja-build libblas-dev liblapack-dev liblapacke-dev libboost-all-dev libopenmpi-dev libeigen3-dev libhdf5-dev
sudo apt-get clean all
- name: Install Catch v3
run: |
wget -O Catch2.tar.gz https://github.com/catchorg/Catch2/archive/refs/tags/v3.6.0.tar.gz
tar xzf Catch2.tar.gz
rm Catch2.tar.gz
cd Catch2*
cmake -S . -B build
cmake --build build
sudo cmake --install build
- name: Install HighFive
run: |
wget -O HighFive.tar.gz https://github.com/BlueBrain/HighFive/archive/v2.9.0.tar.gz
tar xzf HighFive.tar.gz
rm HighFive.tar.gz
cd HighFive*
cmake -S . -B build
cmake -DHIGHFIVE_EXAMPLES=OFF -DHIGHFIVE_USE_BOOST=OFF -DHIGHFIVE_UNIT_TESTS=OFF -S . -B build
cmake --build build
sudo cmake --install build
Expand Down
2 changes: 1 addition & 1 deletion ci/buildwheel/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "$SCRIPT_DIR"
echo "MACOSX_DEPLOYMENT_TARGET: [$MACOSX_DEPLOYMENT_TARGET]"
echo "PWD: [$PWD]"

brew install --formulae eigen ../highfive.rb
brew install --formulae eigen ../highfive.rb catch2
brew uninstall --ignore-dependencies hdf5

./install_hdf5.sh
1 change: 1 addition & 0 deletions conda-recipes/smurff/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ requirements:
- mkl-devel # [blas_impl == 'mkl']
- openblas # [blas_impl != 'mkl']
- eigen
- catch2
- libboost-devel
- pybind11
- highfive >=2.2
Expand Down

0 comments on commit 39cb0ea

Please sign in to comment.