From 4244ad7acd98328c1f04f1c2201d571f643370bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Mon, 26 Oct 2026 23:01:04 +0100 Subject: [PATCH] ci : add windows behavior check (#31191) --- .github/workflows/behavior-check.yml | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) 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