Skip to content

Commit debbc06

Browse files
luisleo526claude
andcommitted
ci(release): fail closed if the pf-gcp-main image loses its baked Eigen3
Companion to the narrowed apt step: on the self-hosted linux-x86_64 slice the job now asserts the Eigen 3.4 headers exist before configuring, so a missing system Eigen stops the release instead of falling back to an unverified source. Co-Authored-By: Claude Code <[email protected]>
1 parent 643af69 commit debbc06

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,25 @@ jobs:
375375
sudo apt-get update
376376
sudo apt-get install -y libeigen3-dev
377377
378+
# Fail closed on the self-hosted slice: if the image ever loses its baked Eigen, the
379+
# build must stop here instead of falling back to an unverified source.
380+
- name: Assert Eigen3 3.4 on the self-hosted Linux x86_64 slice
381+
if: runner.os == 'Linux' && matrix.triple == 'linux-x86_64'
382+
run: |
383+
set -euo pipefail
384+
hdr=""
385+
for p in /usr/include/eigen3/Eigen/Core /usr/local/include/eigen3/Eigen/Core; do
386+
if [ -f "$p" ]; then hdr="$p"; break; fi
387+
done
388+
if [ -z "$hdr" ]; then
389+
echo "::error::Eigen3 headers not found on the pf-gcp-main image"
390+
exit 1
391+
fi
392+
macros="$(dirname "$hdr")/src/Core/util/Macros.h"
393+
grep -q 'define EIGEN_WORLD_VERSION 3' "$macros"
394+
grep -q 'define EIGEN_MAJOR_VERSION 4' "$macros"
395+
echo "Eigen3 3.4.x present at $(dirname "$(dirname "$hdr")")"
396+
378397
- name: Install Eigen3 (macOS)
379398
if: runner.os == 'macOS'
380399
run: |

0 commit comments

Comments
 (0)