From 42b4958c2a3602299a28161b65e713862916776b Mon Sep 17 00:00:00 2001 From: Hikari Date: Mon, 13 Apr 2026 11:50:36 -0700 Subject: [PATCH] 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. --- .gitea/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 98e106e..d67ba89 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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