Commit 4244ad7ac for llama.cpp
commit 4244ad7acd98328c1f04f1c2201d571f643370bb
Author: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
Date: Mon Oct 26 23:01:04 2026 +0100
ci : add windows behavior check (#31191)
diff --git a/.github/workflows/behavior-check.yml b/.github/workflows/behavior-check.yml
index 22d8d7034..7c5ecacdc 100644
--- a/.github/workflows/behavior-check.yml
+++ b/.github/workflows/behavior-check.yml
@@ -107,3 +107,52 @@ jobs:
source .venv/bin/activate
cd build
ctest -L behavior -LE 'model|backend' --verbose --timeout 900
+
+ windows:
+ runs-on: windows-2025
+
+ cache-mode: write
+ permissions:
+ actions: write
+ contents: read
+
+ steps:
+ - name: Clone
+ id: checkout
+ uses: actions/checkout@v6
+
+ - name: ccache
+ uses: ggml-org/ccache-action@v1.2.24
+ with:
+ key: behavior-check-windows-2025
+ evict-old-files: 1d
+ save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+
+ - name: Python Dependencies
+ id: python_depends
+ shell: bash
+ run: |
+ python3 -m venv .venv
+ source .venv/Scripts/activate
+ pip install jinja2==3.1.6
+
+ - name: Build
+ id: cmake_build
+ shell: cmd
+ run: |
+ call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
+ cmake -B build -G "Ninja Multi-Config" ^
+ -DCMAKE_TOOLCHAIN_FILE=cmake/x64-windows-llvm.cmake ^
+ -DCMAKE_BUILD_TYPE=Release ^
+ -DGGML_NATIVE=OFF ^
+ -DGGML_BACKEND_DL=OFF
+ set /A NINJA_JOBS=%NUMBER_OF_PROCESSORS%-1
+ cmake --build build --config Release -j %NINJA_JOBS%
+
+ - name: Test
+ id: cmake_test
+ shell: bash
+ run: |
+ source .venv/Scripts/activate
+ cd build
+ ctest -C Release -L behavior -LE 'model|backend' --verbose --timeout 900