Skip to content

Commit 1ac87a3

Browse files
committed
add build of ov_contrib
1 parent 0ee1669 commit 1ac87a3

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/windows.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
runs-on: windows-2019-16-core
2727
env:
2828
CMAKE_BUILD_TYPE: 'Release'
29-
CMAKE_GENERATOR: 'Ninja Multi-Config'
3029
CMAKE_CXX_COMPILER_LAUNCHER: ccache
3130
CMAKE_C_COMPILER_LAUNCHER: ccache
3231
OPENVINO_REPO: ${{ github.workspace }}\\openvino
3332
OPENVINO_CONTRIB_REPO: ${{ github.workspace }}\\openvino_contrib
3433
TEST_DATA: ${{ github.workspace }}\\testdata
3534
INSTALL_DIR: ${{ github.workspace }}\\openvino\\install
3635
BUILD_DIR: ${{ github.workspace }}\\openvino\\build
36+
BUILD_DIR_CONTRIB: ${{ github.workspace }}\\openvino\\build_contrib
3737
GRADLE_VER: '7.1.1'
3838

3939
steps:
@@ -88,6 +88,7 @@ jobs:
8888
Expand-Archive -Force ninja-win.zip
8989
# Add it to the GitHub Path so it would be available in the subsequent steps
9090
Add-Content -Path $env:GITHUB_PATH -Value "${{ github.workspace }}/ninja-win"
91+
choco install opencv -y
9192
9293
#
9394
# Build
@@ -110,7 +111,7 @@ jobs:
110111
111112
- name: CMake configure - OpenVINO
112113
run: |
113-
cmake -G "${{ env.CMAKE_GENERATOR }}" `
114+
cmake -GNinja `
114115
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} `
115116
-DBUILD_nvidia_plugin=OFF `
116117
-DENABLE_OV_TF_FRONTEND=OFF `
@@ -140,6 +141,16 @@ jobs:
140141
- name: Cmake install - OpenVINO
141142
run: cmake -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR }} -P ${{ env.BUILD_DIR }}/cmake_install.cmake
142143

144+
- name: CMake configure - OpenVINO Contrib
145+
run: |
146+
cmake -GNinja `
147+
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} `
148+
-S ${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations `
149+
-B ${{ env.BUILD_DIR_CONTRIB }}
150+
151+
- name: Cmake build - OpenVINO Contrib
152+
run: cmake --build ${{ env.BUILD_DIR_CONTRIB }} --parallel --config ${{ env.CMAKE_BUILD_TYPE }} --verbose
153+
143154
- name: Java tests
144155
working-directory: ${{ env.OPENVINO_CONTRIB_REPO }}/modules/java_api
145156
run: |
@@ -152,11 +163,11 @@ jobs:
152163
run: |
153164
ls ${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}
154165
. "${{ env.INSTALL_DIR }}/setupvars.ps1"
155-
python3 -m pip install -r ${{ env.OPENVINO_REPO }}/modules/custom_operations/tests/requirements.txt
166+
python3 -m pip install -r ${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations/tests/requirements.txt
156167
157168
python3 -m pytest -k "not sparse_conv" tests/run_tests.py
158169
env:
159-
CUSTOM_OP_LIB: ${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/user_ie_extensions.dll
170+
CUSTOM_OP_LIB: ${{ env.BUILD_DIR_CONTRIB }}/user_ie_extensions/user_ov_extensions.dll
160171

161172
- name: Upload Test Results
162173
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)