From a29698fdb3c8d51ba200c404a9ec184c16ad76a6 Mon Sep 17 00:00:00 2001 From: Danny Yurkin <283456650+danyurkin@users.noreply.github.com> Date: Wed, 23 Sep 2026 19:13:57 +0300 Subject: [PATCH] ci : build Windows TurboQuant in a short directory The windows-x64 (vulkan) job fails on the windows-2022 image 20260913.307.1: the vulkan-shaders-gen sub-build cannot pass CMake's compiler check because rc.exe stops with "RC2136: missing '=' in EXSTYLE=" on the try_compile manifest.rc. The same code built on image 20260802. With this repo's name twice in the workspace path, the sub-build's try_compile path is very deep. The top-level configure and the other variants pass. Build in C:\tqb and add a junction from build to it, so the later steps that use .\build keep working unchanged. Also exit on a failed build step, because the junction would otherwise hide the build's exit code. --- .github/workflows/build-turboquant-windows.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-turboquant-windows.yml b/.github/workflows/build-turboquant-windows.yml index 59a31e948852..410fb51a7c29 100644 --- a/.github/workflows/build-turboquant-windows.yml +++ b/.github/workflows/build-turboquant-windows.yml @@ -95,7 +95,8 @@ jobs: # NOTE: GGML_CUDA_CUB_3DOT2 can be dropped once CCCL 3.2 ships in the CTK used here. run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - cmake -S . -B build -G "Ninja Multi-Config" ^ + rem Short build dir: with this repo's long workspace path, rc.exe fails (RC2136) on the deep vulkan-shaders-gen try_compile path. The junction keeps .\build working for later steps. + cmake -S . -B C:\tqb -G "Ninja Multi-Config" ^ -DGGML_NATIVE=OFF ^ -DGGML_BACKEND_DL=ON ^ -DGGML_CPU_ALL_VARIANTS=ON ^ @@ -108,8 +109,9 @@ jobs: -DLLAMA_BUILD_EXAMPLES=OFF ^ ${{ matrix.cmake_flags }} set /A NINJA_JOBS=%NUMBER_OF_PROCESSORS%-1 - cmake --build build --config Release -j %NINJA_JOBS% -t ggml - cmake --build build --config Release -j %NINJA_JOBS% + cmake --build C:\tqb --config Release -j %NINJA_JOBS% -t ggml || exit /b 1 + cmake --build C:\tqb --config Release -j %NINJA_JOBS% || exit /b 1 + mklink /J build C:\tqb - name: Verify turbo3 support shell: pwsh