diff --git a/.github/scripts/install.sh b/.github/scripts/install.sh index bed4f25a..ffea306c 100644 --- a/.github/scripts/install.sh +++ b/.github/scripts/install.sh @@ -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 diff --git a/.github/scripts/install_eigen_windows.sh b/.github/scripts/install_eigen_windows.sh new file mode 100644 index 00000000..2587f848 --- /dev/null +++ b/.github/scripts/install_eigen_windows.sh @@ -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 + diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 6b25192b..1fefda24 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -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: