ci: fetch Eigen from the GitHub mirror (#6223) GitLab is sometimes down, which fails CI. The pinned hash stays the same. Assisted-by: ClaudeCode:claude-opus-5-5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60e6fd5..a8c221f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml
@@ -243,6 +243,7 @@ -DPYBIND11_PYTEST_ARGS=-v -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=14 -DPYBIND11_INTERNALS_VERSION=10000000 @@ -295,7 +296,7 @@ run: uv tool install ninja - name: Configure via preset - run: cmake --preset venv -DPYBIND11_CREATE_WITH_UV="${{ matrix.python-version }}" + run: cmake --preset venv -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DPYBIND11_CREATE_WITH_UV="${{ matrix.python-version }}" - name: Build C++11 run: cmake --build --preset venv @@ -737,6 +738,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=11 -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") @@ -888,6 +890,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git ${{ matrix.args }} - name: Build C++11 run: cmake --build build -j 2 @@ -937,6 +940,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git ${{ matrix.args }} - name: Build C++11 run: cmake --build build --config Debug -j 2 @@ -977,6 +981,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=20 - name: Build C++20 @@ -1001,6 +1006,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=20 "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp" @@ -1172,6 +1178,7 @@ -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_STANDARD=17 @@ -1240,6 +1247,7 @@ -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF ` -DDOWNLOAD_CATCH=ON ` -DDOWNLOAD_EIGEN=ON ` + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git ` -DCMAKE_CXX_COMPILER=clang++ ` -DCMAKE_CXX_STANDARD=20 ` -DPython_EXECUTABLE="$pythonExecutable" ` @@ -1315,6 +1323,7 @@ -DPYBIND11_WERROR=OFF -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_STANDARD=20 -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 4ff7fcc..d73976c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml
@@ -47,7 +47,7 @@ run: apt-get update && apt-get install -y git python3-dev python3-pytest ninja-build - name: Configure - run: cmake --preset tidy + run: cmake --preset tidy -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git - name: Build run: cmake --build --preset tidy
diff --git a/.github/workflows/reusable-standard.yml b/.github/workflows/reusable-standard.yml index 59449ac..ddc419a 100644 --- a/.github/workflows/reusable-standard.yml +++ b/.github/workflows/reusable-standard.yml
@@ -78,6 +78,7 @@ -DPYBIND11_PYTEST_ARGS=-v -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DPYTHON_EXECUTABLE=${{ steps.python.outputs.python-path }} ${{ inputs.cmake-args }}
diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index 7ad8c99..8a5a5a1 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml
@@ -56,6 +56,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=11 -DCMAKE_BUILD_TYPE=Debug @@ -79,6 +80,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=17 - name: Build C++17 @@ -98,6 +100,7 @@ -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON + -DPYBIND11_EIGEN_REPO=https://github.com/eigen-mirror/eigen.git -DCMAKE_CXX_STANDARD=17 -DPYBIND11_INTERNALS_VERSION=10000000