Skip to content

Commit bf843f4

Browse files
linesightclaude
andcommitted
Fix macOS ARM CI: bust stale x86_64 CEF cache, add arch check
Bump cache key to v2 to force re-download of the correct arm64 CEF binary (a previous run cached x86_64 artifacts before platform detection was fixed, causing link failures). Add a "Verify CEF architecture" step that runs lipo -info on libcef_dll_wrapper.a and fails fast if arm64 is not present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c1f6259 commit bf843f4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci-macos.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
path: |
4949
build/cef_binary_*
5050
build/cef*_macarm64
51-
key: cef-macosarm64-${{ steps.cef-version.outputs.value }}
51+
key: cef-macosarm64-v2-${{ steps.cef-version.outputs.value }}
5252

5353
- name: Install build tools
5454
run: python tools/requirements.py
@@ -59,6 +59,14 @@ jobs:
5959
- name: Prepare prebuilt CEF
6060
run: python tools/automate.py --prebuilt-cef
6161

62+
- name: Verify CEF architecture
63+
run: |
64+
wrapper=$(ls build/cef*_macarm64/lib/libcef_dll_wrapper.a 2>/dev/null | head -1)
65+
if [ -z "$wrapper" ]; then echo "libcef_dll_wrapper.a not found"; exit 1; fi
66+
archs=$(lipo -info "$wrapper" 2>&1)
67+
echo "$archs"
68+
echo "$archs" | grep -q arm64 || (echo "ERROR: libcef_dll_wrapper.a is not arm64"; exit 1)
69+
6270
- name: Configure CMake
6371
run: cmake -S . -B build/_cmake_build -G Ninja -DCMAKE_BUILD_TYPE=Release
6472

0 commit comments

Comments
 (0)