53
53
INSTALL_DIR_JS : " ${{ github.workspace }}\\ openvino_install\\ js"
54
54
INSTALL_TEST_DIR : " ${{ github.workspace }}\\ tests_install"
55
55
INSTALL_WHEELS_DIR : " ${{ github.workspace }}\\ install\\ wheels"
56
+ INSTALL_PDB_DIR : " ${{ github.workspace }}\\ install_pdb"
56
57
BUILD_DIR : " ${{ github.workspace }}\\ openvino_build"
57
58
ARTIFACTS_SHARE : " C:\\ mount\\ build-artifacts"
58
59
MANIFEST_PATH : " ${{ github.workspace }}\\ manifest.yml"
@@ -157,7 +158,7 @@ jobs:
157
158
- name : Configure Developer Command Prompt for Microsoft Visual C++
158
159
uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
159
160
with :
160
- toolset : 14.40 # v2022
161
+ toolset : 14.42 # v2022
161
162
162
163
- name : Set SSL_CERT_FILE for model downloading for unit tests
163
164
run : echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV
@@ -176,10 +177,10 @@ jobs:
176
177
177
178
- name : Cmake install - OpenVINO
178
179
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
183
184
184
185
# Setup additional Python versions for wheels building
185
186
- name : Setup Python 3.9
@@ -218,18 +219,18 @@ jobs:
218
219
foreach ($pyVersion in $pyVersions) {
219
220
$pyBuildDir = "${{ github.workspace }}/py$pyVersion"
220
221
New-Item -ItemType Directory -Path "$pyBuildDir" -Force
221
-
222
+
222
223
$pythonCommand = "py -$pyVersion -c `"import sys; print(f'{sys.executable}')`""
223
224
$pythonExecutablePath = & cmd /c $pythonCommand
224
225
225
226
$pipVersion = & $pythonExecutablePath -c "import pip; print(pip.__version__)"
226
227
Write-Host "Using pip version: $pipVersion for $pyVersion"
227
228
$env:PIP_CACHE_DIR="${{ env.PIP_CACHE_PATH }}/$pipVersion"
228
-
229
+
229
230
& $pythonExecutablePath -m pip install -r ${{ env.OPENVINO_REPO }}/src/bindings/python/wheel/requirements-dev.txt
230
231
231
232
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 }} &&
233
234
cmake --install "$pyBuildDir" --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_WHEELS_DIR }} --component python_wheels
234
235
if ($LASTEXITCODE -ne 0) {
235
236
Write-Host "Failed to build Python wheels for Python $pyVersion"
@@ -255,6 +256,23 @@ jobs:
255
256
}
256
257
Compress-Archive @compress
257
258
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
+
258
276
- name : CMake configure, build and install - OpenVINO JS API
259
277
if : ${{ fromJSON(inputs.affected-components).JS_API }}
260
278
run : |
@@ -264,7 +282,7 @@ jobs:
264
282
-DENABLE_WHEEL=OFF
265
283
cmake --build ${{ env.BUILD_DIR }} --parallel $ENV:NUMBER_OF_PROCESSORS
266
284
cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR_JS }}
267
-
285
+
268
286
- name : Pack JS Artifacts
269
287
if : ${{ fromJSON(inputs.affected-components).JS_API }}
270
288
run : |
@@ -276,33 +294,47 @@ jobs:
276
294
}
277
295
Compress-Archive @compress
278
296
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
+
279
304
#
280
305
# Upload build artifacts and logs
281
306
#
282
307
283
- - name : Upload openvino package
308
+ - name : Upload OpenVINO package
284
309
uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
285
310
with :
286
311
name : openvino_package
287
312
path : ${{ env.BUILD_DIR }}/openvino_package.zip
288
313
if-no-files-found : ' error'
289
-
290
- - name : Upload openvino wheels
314
+
315
+ - name : Upload OpenVINO wheels
291
316
if : ${{ inputs.build-type != 'Debug' }}
292
317
uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
293
318
with :
294
319
name : openvino_wheels
295
320
path : ${{ env.INSTALL_WHEELS_DIR }}/wheels/*.whl
296
321
if-no-files-found : ' error'
297
322
298
- - name : Upload openvino tests package
323
+ - name : Upload OpenVINO tests package
299
324
uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
300
325
with :
301
326
name : openvino_tests
302
327
path : ${{ env.BUILD_DIR }}/openvino_tests.zip
303
328
if-no-files-found : ' error'
304
329
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
306
338
if : ${{ fromJSON(inputs.affected-components).JS_API }}
307
339
uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
308
340
with :
0 commit comments