From 48896d5c1e320e368585edd38750823024bb24c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Sat, 19 Sep 2026 22:53:19 +0200 Subject: [PATCH] Use Clang 19 for Windows cross-builds --- .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 2409d31..b0dd467 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: run: | sudo apt-get update sudo apt-get install --no-install-recommends -y \ - clang \ + clang-19 \ libasound2-dev \ libudev-dev \ libusb-1.0-0-dev \ @@ -89,10 +89,14 @@ jobs: libx11-dev \ libxkbcommon-dev \ libxkbcommon-x11-0 \ - lld \ + lld-19 \ + llvm-19 \ mesa-vulkan-drivers \ mold \ pkg-config + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 100 + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100 + rm -f "$HOME/.cache/cargo-xwin/clang-cl" - name: Preprocess assets run: cargo run --locked --bin process-assets --no-default-features --features debug_features -j 4 @@ -101,7 +105,9 @@ jobs: run: cargo build --locked --profile production --no-default-features --features debug_features -j 4 - name: Build Windows production binary - run: cargo xwin build --locked --target x86_64-pc-windows-msvc --profile production --no-default-features --features debug_features -j 4 --bin shinespark + run: | + clang --version + cargo xwin build --locked --target x86_64-pc-windows-msvc --profile production --no-default-features --features debug_features -j 4 --bin shinespark - name: Verify production binary is not Bevy/Rust dynamically linked run: |