Skip to content

Commit

Permalink
Build Eigen on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cjh1 committed Sep 13, 2024
1 parent 0f43498 commit 1eca40c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ set -ev

pip install cibuildwheel

if [[ $RUNNER_OS == "Windows" ]]; then
git clone --recursive -b 3.3.9 --depth 1 https://gitlab.com/libeigen/eigen /c/eigen
elif [[ $RUNNER_OS == "macOS" ]]; then
if [[ $RUNNER_OS == "macOS" ]]; then
brew install eigen ninja
fi
9 changes: 9 additions & 0 deletions .github/scripts/install_eigen_windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -ev

git clone --recursive -b 3.3.9 --depth 1 https://gitlab.com/libeigen/eigen /c/eigen
mkdir /c/build
cd /c/build
cmake -GNinja /c/eigen
ninja install

2 changes: 2 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ env:

CIBW_BEFORE_ALL_MACOS: . .github/scripts/install_hdf5_macos.sh

CIBW_BEFORE_ALL_WINDOWS: . .github/scripts/install_eigen_windows.sh

# Use bash by default for the run command
defaults:
run:
Expand Down

0 comments on commit 1eca40c

Please sign in to comment.