update ov #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build (Windows) | |
on: [push, workflow_dispatch] | |
jobs: | |
build-windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: cmd | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# master | |
ref: 4655dd6ce3fa7947d5f70c3552f31fdda50582d0 | |
fetch-depth: 0 | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Setup Ninja | |
run: pip install ninja | |
- name: Remove apiValidator | |
run: | | |
cd /d "C:\Program Files (x86)\Windows Kits\10\bin" | |
del /f /s /q apiValidator.exe | |
- name: Configure | |
run: cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -Wno-dev -LA | |
-D CMAKE_TOOLCHAIN_FILE=%cd%\cmake\toolchains\mt.runtime.win32.toolchain.cmake | |
-D ENABLE_LTO=ON -DENABLE_FASTER_BUILD=ON -D VERBOSE_BUILD=ON -D TREAT_WARNING_AS_ERROR=OFF | |
-D ENABLE_PYTHON=OFF -D ENABLE_WHEEL=OFF | |
-D ENABLE_OPENCV=OFF -D ENABLE_GAPI_PREPROCESSING=OFF | |
-D ENABLE_SAMPLES=OFF -D ENABLE_DOCS=OFF -DENABLE_TESTS=OFF | |
-D ENABLE_NCC_STYLE=OFF -D ENABLE_CLANG_FORMAT=OFF -D ENABLE_CPPLINT=OFF | |
-D THREADING=TBB -D ENABLE_INTEL_CPU=ON | |
-D ENABLE_INTEL_GPU=ON -D ENABLE_ONEDNN_FOR_GPU=ON -D OPENCL_ICD_LOADER_DISABLE_OPENCLON12=ON | |
-D ENABLE_INTEL_NPU=ON | |
-D ENABLE_MULTI=ON -D ENABLE_AUTO=ON -D ENABLE_AUTO_BATCH=ON -D ENABLE_HETERO=ON -D ENABLE_TEMPLATE=OFF | |
-D ENABLE_OV_ONNX_FRONTEND=ON -D ENABLE_OV_TF_FRONTEND=ON -D ENABLE_OV_PADDLE_FRONTEND=OFF | |
- name: Build | |
run: cmake --build build --verbose | |
- name: Install | |
run: | | |
cmake --install build --prefix openvino | |
mkdir openvino\include | |
xcopy thirdparty\onnx\onnx\onnx openvino\include\onnx /s /i /f | |
xcopy build\thirdparty\onnx\onnx\onnx openvino\include\onnx /s /i /f | |
xcopy thirdparty\protobuf\protobuf\src\* openvino\include /s /f | |
- name: Show | |
run: ls -R openvino | |
- name: Package | |
shell: pwsh | |
run: Compress-Archive openvino -DestinationPath openvino-gpu-win64.zip | |
- name: Get description | |
shell: bash | |
run: echo OV_VERSION=`git describe --tags --long` >> $GITHUB_ENV | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: openvino-gpu-win64.zip | |
name: Build ${{ env.OV_VERSION }} | |
tag_name: ${{ env.OV_VERSION }} | |
prerelease: true |