diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2312b9760bd..45b5d08a1f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1092,6 +1092,50 @@ jobs: # $env:LLAMA_SKIP_TESTS_SLOW_ON_EMULATOR = 1 # & $sde -future -- ctest -L main -C Release --verbose --timeout 900 + windows-latest-cmake-openvino: + runs-on: windows-latest + + env: + OPENVINO_VERSION_MAJOR: "2025.3" + OPENVINO_VERSION_FULL: "2025.3.0.19807.44526285f24" + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup MSBuild / VS Build Tools + uses: microsoft/setup-msbuild@v1 + + - name: Download and extract OpenVINO Runtime + shell: powershell + run: | + $url = "https://storage.openvinotoolkit.org/repositories/openvino/packages/2025.3/windows/openvino_toolkit_windows_2025.3.0.19807.44526285f24_x86_64.zip" + $out = "openvino.zip" + Invoke-WebRequest -Uri $url -OutFile $out + Expand-Archive -Path $out -DestinationPath openvino_toolkit -Force + Remove-Item $out + + - name: Build with OpenVINO + shell: cmd + run: | + REM Find extracted OpenVINO folder dynamically + for /d %%i in (openvino_toolkit\*) do set OPENVINO_ROOT=%%i + set "OpenVINO_DIR=%OPENVINO_ROOT%\runtime\cmake" + + if not exist "%OpenVINO_DIR%\OpenVINOConfig.cmake" ( + echo ERROR: OpenVINOConfig.cmake not found + exit /b 1 + ) + + cmake -B build\ReleaseOV -G "Visual Studio 17 2022" ^ + -A x64 ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DGGML_OPENVINO=ON ^ + -DLLAMA_CURL=OFF ^ + -DOpenVINO_DIR="%OpenVINO_DIR%" + + cmake --build build\ReleaseOV --config Release -- /m + ubuntu-latest-cmake-cuda: runs-on: ubuntu-latest container: nvidia/cuda:12.6.2-devel-ubuntu24.04