5353 INSTALL_DIR_JS : " ${{ github.workspace }}\\ openvino_install\\ js"
5454 INSTALL_TEST_DIR : " ${{ github.workspace }}\\ tests_install"
5555 INSTALL_WHEELS_DIR : " ${{ github.workspace }}\\ install\\ wheels"
56+ INSTALL_PDB_DIR : " ${{ github.workspace }}\\ install_pdb"
5657 BUILD_DIR : " ${{ github.workspace }}\\ openvino_build"
5758 ARTIFACTS_SHARE : " C:\\ mount\\ build-artifacts"
5859 MANIFEST_PATH : " ${{ github.workspace }}\\ manifest.yml"
@@ -157,7 +158,7 @@ jobs:
157158 - name : Configure Developer Command Prompt for Microsoft Visual C++
158159 uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
159160 with :
160- toolset : 14.40 # v2022
161+ toolset : 14.42 # v2022
161162
162163 - name : Set SSL_CERT_FILE for model downloading for unit tests
163164 run : echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV
@@ -176,10 +177,10 @@ jobs:
176177
177178 - name : Cmake install - OpenVINO
178179 run : |
179- cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR }}
180- cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_WHEELS_DIR }} --component python_wheels
181- cmake --install . --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_TEST_DIR }} --component tests
182- working-directory : ${{ env.BUILD_DIR }}
180+ cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR }}
181+ cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_WHEELS_DIR }} --component python_wheels
182+ cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_TEST_DIR }} --component tests
183+ cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_PDB_DIR }} --component pdb
183184
184185 # Setup additional Python versions for wheels building
185186 - name : Setup Python 3.9
@@ -218,18 +219,18 @@ jobs:
218219 foreach ($pyVersion in $pyVersions) {
219220 $pyBuildDir = "${{ github.workspace }}/py$pyVersion"
220221 New-Item -ItemType Directory -Path "$pyBuildDir" -Force
221-
222+
222223 $pythonCommand = "py -$pyVersion -c `"import sys; print(f'{sys.executable}')`""
223224 $pythonExecutablePath = & cmd /c $pythonCommand
224225
225226 $pipVersion = & $pythonExecutablePath -c "import pip; print(pip.__version__)"
226227 Write-Host "Using pip version: $pipVersion for $pyVersion"
227228 $env:PIP_CACHE_DIR="${{ env.PIP_CACHE_PATH }}/$pipVersion"
228-
229+
229230 & $pythonExecutablePath -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
230231
231232 cmake -DPython3_EXECUTABLE="$pythonExecutablePath" -DOpenVINODeveloperPackage_DIR=${{ env.BUILD_DIR }} -S ${{ env.OPENVINO_REPO }}/src/bindings/python -B "$pyBuildDir" &&
232- cmake --build "$pyBuildDir" --parallel $ENV:NUMBER_OF_PROCESSORS --target ie_wheel --config ${{ env.CMAKE_BUILD_TYPE }} &&
233+ cmake --build "$pyBuildDir" --parallel $ENV:NUMBER_OF_PROCESSORS --target ie_wheel --config ${{ env.CMAKE_BUILD_TYPE }} &&
233234 cmake --install "$pyBuildDir" --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_WHEELS_DIR }} --component python_wheels
234235 if ($LASTEXITCODE -ne 0) {
235236 Write-Host "Failed to build Python wheels for Python $pyVersion"
@@ -255,6 +256,23 @@ jobs:
255256 }
256257 Compress-Archive @compress
257258
259+ $file=Get-ChildItem -Path "${{ env.INSTALL_PDB_DIR }}"
260+ $compress = @{
261+ Path = $file
262+ CompressionLevel = "Optimal"
263+ DestinationPath = "${{ env.BUILD_DIR }}/openvino_pdb.zip"
264+ }
265+ Compress-Archive @compress
266+
267+ # Setup Python 3.11 as the default one
268+ - name : Setup Python ${{ env.PYTHON_VERSION }}
269+ uses : ./openvino/.github/actions/setup_python
270+ with :
271+ version : ${{ env.PYTHON_VERSION }}
272+ pip-cache-path : ${{ env.PIP_CACHE_PATH }}
273+ should-setup-pip-paths : ' true'
274+ self-hosted-runner : ' true'
275+
258276 - name : CMake configure, build and install - OpenVINO JS API
259277 if : ${{ fromJSON(inputs.affected-components).JS_API }}
260278 run : |
@@ -264,7 +282,7 @@ jobs:
264282 -DENABLE_WHEEL=OFF
265283 cmake --build ${{ env.BUILD_DIR }} --parallel $ENV:NUMBER_OF_PROCESSORS
266284 cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR_JS }}
267-
285+
268286 - name : Pack JS Artifacts
269287 if : ${{ fromJSON(inputs.affected-components).JS_API }}
270288 run : |
@@ -276,33 +294,47 @@ jobs:
276294 }
277295 Compress-Archive @compress
278296
297+ - name : Cmake & Build - OpenVINO Contrib
298+ run : |
299+ cmake -DCUSTOM_OPERATIONS="calculate_grid;complex_mul;fft;grid_sample;sparse_conv;sparse_conv_transpose" -S ${{ env.OPENVINO_REPO }} -B ${{ env.BUILD_DIR }} `
300+ -DOPENVINO_EXTRA_MODULES="${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations;${{ env.OPENVINO_CONTRIB_REPO }}/modules/java_api" `
301+ -DENABLE_WHEEL=OFF
302+ cmake --build ${{ env.BUILD_DIR }} --parallel $ENV:NUMBER_OF_PROCESSORS
303+
279304 #
280305 # Upload build artifacts and logs
281306 #
282307
283- - name : Upload openvino package
308+ - name : Upload OpenVINO package
284309 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
285310 with :
286311 name : openvino_package
287312 path : ${{ env.BUILD_DIR }}/openvino_package.zip
288313 if-no-files-found : ' error'
289-
290- - name : Upload openvino wheels
314+
315+ - name : Upload OpenVINO wheels
291316 if : ${{ inputs.build-type != 'Debug' }}
292317 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
293318 with :
294319 name : openvino_wheels
295320 path : ${{ env.INSTALL_WHEELS_DIR }}/wheels/*.whl
296321 if-no-files-found : ' error'
297322
298- - name : Upload openvino tests package
323+ - name : Upload OpenVINO tests package
299324 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
300325 with :
301326 name : openvino_tests
302327 path : ${{ env.BUILD_DIR }}/openvino_tests.zip
303328 if-no-files-found : ' error'
304329
305- - name : Upload openvino js package
330+ - name : Upload OpenVINO PDB package
331+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
332+ with :
333+ name : openvino_pdb
334+ path : ${{ env.BUILD_DIR }}/openvino_pdb.zip
335+ if-no-files-found : ' error'
336+
337+ - name : Upload OpenVINO js package
306338 if : ${{ fromJSON(inputs.affected-components).JS_API }}
307339 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
308340 with :
0 commit comments