diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-16 09:28:39 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-16 09:28:39 +0000 |
| commit | 7ee2b877cf396e680582b4a2d6094d4f3ad89abb (patch) | |
| tree | 28c322e69b49948f5b0d68735b9fb283f03aba73 /.github | |
| parent | b6f0bf2df0f6baadc345a9d146599197a5b46e9f (diff) | |
fix(ci): upgrade macOS LLVM to avoid corrupted driver archives
Update Homebrew metadata and upgrade LLVM 23 before building static LLD.
Check the AMDGPU driver symbol early to reject incomplete archives.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nightly-build.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 62b8d49..5a3ec67 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -123,8 +123,17 @@ jobs: - name: Install LLVM 23 and packaging dependencies run: | test "$(uname -m)" = arm64 + brew update brew install llvm@23 pandoc zlib zstd ncurses python - test -x "$(brew --prefix llvm@23)/bin/clang++" + brew upgrade llvm@23 + llvm_prefix=$(brew --prefix llvm@23) + test -x "$llvm_prefix/bin/clang++" + "$llvm_prefix/bin/llvm-nm" --defined-only --demangle \ + "$llvm_prefix/lib/libclangDriver.a" > "$RUNNER_TEMP/clang-driver-symbols.txt" + if ! grep -F 'clang::driver::tools::AMDGPU::setArchNameInTriple(' "$RUNNER_TEMP/clang-driver-symbols.txt"; then + echo 'LLVM static archive is incomplete; install a Homebrew bottle with the duplicate-member fix.' >&2 + exit 1 + fi - name: Build matching static LLD libraries run: | |
