fix(ci): pin LLVM 18 for Windows cross-compilation
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m18s
CI / Lint & Check (pull_request) Successful in 14m56s
CI / Build Windows (pull_request) Failing after 2m31s

Older llvm-rc versions cannot handle PNG-compressed ICO entries,
causing the Windows build to fail. Pinning to LLVM 18 and setting
up alternatives ensures llvm-rc, clang-cl, and lld-link all resolve
to a version that handles the icon resource correctly.
This commit is contained in:
2026-04-13 11:50:36 -07:00
committed by Naomi Carrigan
parent 662d6119fa
commit 42b4958c2a
+9 -3
View File
@@ -92,10 +92,16 @@ jobs:
patchelf \
libgtk-3-dev \
libayatana-appindicator3-dev \
clang \
lld \
llvm \
clang-18 \
lld-18 \
llvm-18 \
nsis
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
sudo update-alternatives --install /usr/bin/clang-cl clang-cl /usr/bin/clang-cl-18 100
sudo update-alternatives --install /usr/bin/lld lld /usr/bin/lld-18 100
sudo update-alternatives --install /usr/bin/lld-link lld-link /usr/bin/lld-link-18 100
sudo update-alternatives --install /usr/bin/llvm-rc llvm-rc /usr/bin/llvm-rc-18 100
- name: Setup pnpm
uses: pnpm/action-setup@v4