generated from nhcarrigan/template
fix(ci): pin LLVM 18 for Windows cross-compilation
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user