Commit ea718d4
committed
CI: fix Bref PHP detection (no
Reproduced both remaining release failures locally against the actual Bref
image and an offline build:
- Bref (all 4): ext-php-rs finds PHP by shelling out to `which`, which the
minimal Amazon Linux 2023 image does not ship — so detection failed even
though /opt/bin/php is on PATH. Export PHP=/opt/bin/php and
PHP_CONFIG=/opt/bin/php-config to bypass the `which` lookup (verified: the
build then proceeds past PHP detection).
- Linux x86_64: the hardcoded LIBCLANG_PATH=/usr/lib/llvm-15/lib did not
resolve to libclang-15, so bindgen silently fell back to the runner's
libclang-14 and re-hit the emmintrin SSE2 bug. Locate the real libclang-15
shared object by version and point LIBCLANG_PATH at its directory, failing
loudly if it is missing.
Mirror the Bref PHP env in docs/install.md's from-source snippet.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3vgA3Q6PR9VQn8X5pLcMRwhich) and generic-linux libclang-15 path1 parent 98041ba commit ea718d4
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments