Skip to content

Commit

Permalink
Add a CI workflow for building against Eigen from source
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dfm committed Oct 4, 2024
1 parent bff96e2 commit b0fc6ac
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ jobs:
matrix:
os: ['ubuntu-latest', 'windows-2022', 'macos-13']
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']

name: "Python ${{ matrix.python }} / ${{ matrix.os }}"
eigen-from-source: [false]
include:
- os: 'macos-13'
python: '3.12'
eigen-from-source: true
- os: 'ubuntu-latest'
python: '3.12'
eigen-from-source: true

name: "Python ${{ matrix.python }} / ${{ matrix.os }} ${{ (matrix.eigen-from-source && '(eigen from source)') || '' }}"
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -41,9 +49,18 @@ jobs:
uses: lukka/get-cmake@latest

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

- name: Install Eigen from source
if: matrix.eigen-from-source
run: |
git clone --depth 1 https://gitlab.com/libeigen/eigen.git
mkdir eigen/build
cd eigen/build
cmake ..
sudo make install
- name: Install PyTest
run: |
python -m pip install pytest pytest-github-actions-annotate-failures typing_extensions
Expand Down

0 comments on commit b0fc6ac

Please sign in to comment.