@@ -347,8 +347,8 @@ jobs:
347347
348348 env :
349349 # Sync versions in build.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.Dockerfile
350- OPENVINO_VERSION_MAJOR : " 2026.0 "
351- OPENVINO_VERSION_FULL : " 2026.0 .0.20965.c6d6a13a886 "
350+ OPENVINO_VERSION_MAJOR : " 2026.2 "
351+ OPENVINO_VERSION_FULL : " 2026.2 .0.21903.52ddc073857 "
352352
353353 steps :
354354 - name : Set OpenVINO version output
@@ -426,6 +426,98 @@ jobs:
426426 path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-openvino-${{ env.OPENVINO_VERSION_MAJOR }}-x64.tar.gz
427427 name : llama-bin-ubuntu-openvino-${{ env.OPENVINO_VERSION_MAJOR }}-x64.tar.gz
428428
429+ windows-openvino :
430+
431+ runs-on : windows-2022
432+
433+ outputs :
434+ openvino_version : ${{ steps.openvino_version.outputs.value }}
435+
436+ env :
437+ # Sync versions in build-openvino.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.Dockerfile
438+ OPENVINO_VERSION_MAJOR : " 2026.2"
439+ OPENVINO_VERSION_FULL : " 2026.2.0.21903.52ddc073857"
440+
441+ steps :
442+ - name : Set OpenVINO version output
443+ id : openvino_version
444+ run : echo "value=${{ env.OPENVINO_VERSION_MAJOR }}" >> $GITHUB_OUTPUT
445+
446+ - name : Clone
447+ id : checkout
448+ uses : actions/checkout@v6
449+
450+ - name : Setup Node.js
451+ uses : actions/setup-node@v6
452+ with :
453+ node-version : " 24"
454+ cache : " npm"
455+ cache-dependency-path : " tools/ui/package-lock.json"
456+
457+ - name : ccache
458+ uses : ggml-org/ccache-action@v1.2.21
459+ with :
460+ key : windows-2022-openvino-release
461+ variant : ccache
462+ evict-old-files : 1d
463+
464+ - name : Download and extract OpenVINO Runtime
465+ shell : powershell
466+ run : |
467+ $url = "https://storage.openvinotoolkit.org/repositories/openvino/packages/${{ env.OPENVINO_VERSION_MAJOR }}/windows/openvino_toolkit_windows_${{ env.OPENVINO_VERSION_FULL }}_x86_64.zip"
468+ $out = "openvino.zip"
469+ Invoke-WebRequest -Uri $url -OutFile $out
470+ Expand-Archive -Path $out -DestinationPath openvino_toolkit -Force
471+ Remove-Item $out
472+
473+ - name : Install OpenCL using vcpkg
474+ shell : powershell
475+ run : |
476+ git clone https://github.com/microsoft/vcpkg C:\vcpkg
477+ C:\vcpkg\bootstrap-vcpkg.bat
478+ C:\vcpkg\vcpkg install opencl
479+
480+ - name : Build
481+ id : cmake_build
482+ shell : cmd
483+ run : |
484+ REM Find extracted OpenVINO folder dynamically
485+ for /d %%i in (openvino_toolkit\*) do set OPENVINO_ROOT=%%i
486+
487+ if not exist "%OPENVINO_ROOT%\runtime\cmake\OpenVINOConfig.cmake" (
488+ echo ERROR: OpenVINOConfig.cmake not found
489+ exit /b 1
490+ )
491+
492+ REM Call OpenVINO setup script to automatically append DLLs to PATH
493+ call "%OPENVINO_ROOT%\setupvars.bat"
494+
495+ cmake -B build\ReleaseOV -G "Visual Studio 17 2022" ^
496+ -A x64 ^
497+ -DCMAKE_BUILD_TYPE=Release ^
498+ -DGGML_OPENVINO=ON ^
499+ -DLLAMA_CURL=OFF ^
500+ -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
501+
502+ cmake --build build\ReleaseOV --config Release -- /m
503+
504+ - name : Determine tag name
505+ id : tag
506+ uses : ./.github/actions/get-tag-name
507+
508+ - name : Pack artifacts
509+ id : pack_artifacts
510+ shell : powershell
511+ run : |
512+ Copy-Item LICENSE .\build\ReleaseOV\bin\
513+ 7z a -snl llama-${{ steps.tag.outputs.name }}-bin-win-openvino-${{ env.OPENVINO_VERSION_MAJOR }}-x64.zip .\build\ReleaseOV\bin\*
514+
515+ - name : Upload artifacts
516+ uses : actions/upload-artifact@v6
517+ with :
518+ path : llama-${{ steps.tag.outputs.name }}-bin-win-openvino-${{ env.OPENVINO_VERSION_MAJOR }}-x64.zip
519+ name : llama-bin-win-openvino-${{ env.OPENVINO_VERSION_MAJOR }}-x64.zip
520+
429521 windows-cpu :
430522
431523 runs-on : windows-2025
@@ -1249,6 +1341,7 @@ jobs:
12491341 - windows-cuda
12501342 - windows-sycl
12511343 - windows-hip
1344+ - windows-openvino
12521345 - ubuntu-22-rocm
12531346 - ubuntu-cpu
12541347 - ubuntu-vulkan
@@ -1356,6 +1449,7 @@ jobs:
13561449 - [Windows arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cpu-arm64.zip)
13571450 - [Windows x64 (CUDA 12)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cuda-12.4-x64.zip) - [CUDA 12.4 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/cudart-llama-bin-win-cuda-12.4-x64.zip)
13581451 - [Windows x64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-cuda-13.1-x64.zip) - [CUDA 13.1 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/cudart-llama-bin-win-cuda-13.1-x64.zip)
1452+ - [Windows x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-openvino-${{ needs.windows-openvino.outputs.openvino_version }}-x64.zip)
13591453 - [Windows x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-vulkan-x64.zip)
13601454 - [Windows x64 (SYCL)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip)
13611455 - [Windows x64 (HIP)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-hip-radeon-x64.zip)
0 commit comments