Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CI] [GHA] [WIN] Separately build contrib, use Python 3.11 as the default one after building additional wheels (#29273)

Andrei Kashchikhind053a406ba61
diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.yml
index 6165001d3be..7e64e9468a3 100644
--- a/.github/workflows/job_build_windows.yml
+++ b/.github/workflows/job_build_windows.yml
@@ -264,6 +264,15 @@ jobs:
}
Compress-Archive @compress
+ # Setup Python 3.11 as the default one
+ - name: Setup Python ${{ env.PYTHON_VERSION }}
+ uses: ./openvino/.github/actions/setup_python
+ with:
+ version: ${{ env.PYTHON_VERSION }}
+ pip-cache-path: ${{ env.PIP_CACHE_PATH }}
+ should-setup-pip-paths: 'true'
+ self-hosted-runner: 'true'
+
- name: CMake configure, build and install - OpenVINO JS API
if: ${{ fromJSON(inputs.affected-components).JS_API }}
run: |
@@ -285,6 +294,13 @@ jobs:
}
Compress-Archive @compress
+ - name: Cmake & Build - OpenVINO Contrib
+ run: |
+ cmake -DCUSTOM_OPERATIONS="calculate_grid;complex_mul;fft;grid_sample;sparse_conv;sparse_conv_transpose" -S ${{ env.OPENVINO_REPO }} -B ${{ env.BUILD_DIR }} `
+ -DOPENVINO_EXTRA_MODULES="${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations;${{ env.OPENVINO_CONTRIB_REPO }}/modules/java_api" `
+ -DENABLE_WHEEL=OFF
+ cmake --build ${{ env.BUILD_DIR }} --parallel $ENV:NUMBER_OF_PROCESSORS
+
#
# Upload build artifacts and logs
#
diff --git a/.github/workflows/windows_vs2022_debug.yml b/.github/workflows/windows_vs2022_debug.yml
index e2f837b2afe..ccc1ddc8fcf 100644
--- a/.github/workflows/windows_vs2022_debug.yml
+++ b/.github/workflows/windows_vs2022_debug.yml
@@ -65,9 +65,7 @@ jobs:
-DENABLE_TESTS=ON `
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON `
-DENABLE_STRICT_DEPENDENCIES=OFF `
- -DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON `
- -DCUSTOM_OPERATIONS="calculate_grid;complex_mul;fft;grid_sample;sparse_conv;sparse_conv_transpose" `
- -DOPENVINO_EXTRA_MODULES="${env:OPENVINO_CONTRIB_REPO }}/modules/custom_operations;${env:OPENVINO_CONTRIB_REPO}/modules/java_api"
+ -DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON
CXX_Unit_Tests:
name: C++ unit tests
diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.yml
index dbafcd5691d..aac98862887 100644
--- a/.github/workflows/windows_vs2022_release.yml
+++ b/.github/workflows/windows_vs2022_release.yml
@@ -69,9 +69,7 @@ jobs:
-DENABLE_TESTS=ON `
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON `
-DENABLE_STRICT_DEPENDENCIES=OFF `
- -DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON `
- -DCUSTOM_OPERATIONS="calculate_grid;complex_mul;fft;grid_sample;sparse_conv;sparse_conv_transpose" `
- -DOPENVINO_EXTRA_MODULES="${env:OPENVINO_CONTRIB_REPO}/modules/custom_operations;${env:OPENVINO_CONTRIB_REPO}/modules/java_api"
+ -DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON
Samples:
needs: [ Build, Smart_CI ]