Skip to content

Commit b0fc6ac

Browse files
committed
Add a CI workflow for building against Eigen from source
This isn't really meant to be merged, but it's a follow up from wjakob#746 demonstrating the test failure with the current master branch of Eigen. This workflow seems to fail when run on macOS, and (as @hawkinsp suggested) I expect the issue is related to using clang instead of gcc.
1 parent bff96e2 commit b0fc6ac

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/ci.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,16 @@ jobs:
2222
matrix:
2323
os: ['ubuntu-latest', 'windows-2022', 'macos-13']
2424
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.2', 'pypy3.9-v7.3.16', 'pypy3.10-v7.3.17']
25-
26-
name: "Python ${{ matrix.python }} / ${{ matrix.os }}"
25+
eigen-from-source: [false]
26+
include:
27+
- os: 'macos-13'
28+
python: '3.12'
29+
eigen-from-source: true
30+
- os: 'ubuntu-latest'
31+
python: '3.12'
32+
eigen-from-source: true
33+
34+
name: "Python ${{ matrix.python }} / ${{ matrix.os }} ${{ (matrix.eigen-from-source && '(eigen from source)') || '' }}"
2735
runs-on: ${{ matrix.os }}
2836

2937
steps:
@@ -41,9 +49,18 @@ jobs:
4149
uses: lukka/get-cmake@latest
4250

4351
- name: Install Eigen
44-
if: matrix.os == 'ubuntu-latest'
52+
if: ${{ matrix.os == 'ubuntu-latest' && !matrix.eigen-from-source }}
4553
run: sudo apt-get -y install libeigen3-dev
4654

55+
- name: Install Eigen from source
56+
if: matrix.eigen-from-source
57+
run: |
58+
git clone --depth 1 https://gitlab.com/libeigen/eigen.git
59+
mkdir eigen/build
60+
cd eigen/build
61+
cmake ..
62+
sudo make install
63+
4764
- name: Install PyTest
4865
run: |
4966
python -m pip install pytest pytest-github-actions-annotate-failures typing_extensions

0 commit comments

Comments
 (0)