forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (61 loc) · 2.41 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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