OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA] Add build-variant for job_build_linux to differentiate levelzero builds (#36667)
Gracjan Koscinskib0194f025587
diff --git a/.github/actions/common/constants.py b/.github/actions/common/constants.pyindex 0fd72cfe3c8..d0bbc5fa24c 100644--- a/.github/actions/common/constants.py+++ b/.github/actions/common/constants.py@@ -18,6 +18,7 @@ productTypes = ('public_linux_ubuntu_22_04_x86_64_release','public_linux_ubuntu_22_04_dpcpp_x86_64_release','public_linux_ubuntu_24_04_x86_64_release',+ 'public_linux_ubuntu_24_04_x86_64_levelzero_release','public_linux_ubuntu_26_04_x86_64_release','public_windows_vs2019_release','public_windows_vs2019_debug',diff --git a/.github/workflows/dev_gpu_linux_level_zero.yml b/.github/workflows/dev_gpu_linux_level_zero.ymlindex 60f16d6776d..4187bad8e70 100644--- a/.github/workflows/dev_gpu_linux_level_zero.yml+++ b/.github/workflows/dev_gpu_linux_level_zero.yml@@ -103,6 +103,8 @@ jobs:build-debian-packages: truebuild-contrib: truebuild-additional-python-packages: true+ build-variant: 'levelzero'+ store_artifacts: falsetarget-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja Multi-Config'diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.ymlindex 31639a75afd..4a946ac788b 100644--- a/.github/workflows/job_build_linux.yml+++ b/.github/workflows/job_build_linux.yml@@ -60,6 +60,11 @@ on:description: 'Target branch for the build; taken from GitHub context by default'type: stringrequired: false+ build-variant:+ description: 'Build variant, e.g., "levelzero"; blank by default'+ type: string+ required: false+ default: ''use_latest_onednn:description: 'Whether to use the latest OneDNN'type: boolean@@ -70,6 +75,11 @@ on:type: booleanrequired: falsedefault: false+ store_artifacts:+ description: 'Whether to store build artifacts on a shared drive'+ type: boolean+ required: false+ default: trueinstall-frontend-test-deps:description: 'Whether to install TensorFlow/TFLite/Paddle frontend unit test requirements (no Python 3.14 wheels yet)'type: boolean@@ -115,10 +125,10 @@ jobs:INSTALL_WHEELS_DIR: ${{ github.workspace }}/openvino/install/wheelsDEVELOPER_PACKAGE_DIR: ${{ github.workspace }}/openvino/developer_package_installBUILD_DIR: ${{ github.workspace }}/openvino/openvino_build- SCCACHE_AZURE_KEY_PREFIX: ${{ inputs.os }}_${{ inputs.arch }}_Release+ SCCACHE_AZURE_KEY_PREFIX: ${{ inputs.os }}_${{ inputs.arch }}${{ inputs.build-variant && format('_{0}', inputs.build-variant) || '' }}_ReleaseARTIFACTS_SHARE: "/mount/build-artifacts"MANIFEST_PATH: '${{ github.workspace }}/openvino/manifest.yml'- PRODUCT_TYPE: public_linux_${{ inputs.os }}_${{ inputs.arch }}_release+ PRODUCT_TYPE: public_linux_${{ inputs.os }}_${{ inputs.arch }}${{ inputs.build-variant && format('_{0}', inputs.build-variant) || '' }}_releaseCOVERAGE_NOTES_DIR: ${{ github.workspace }}/coverage_build_notesPIP_INDEX_URL: ${{ contains(inputs.runner, 'aks') && 'http://pip-proxy.pip-proxy.svc.cluster.local/simple/' || '' }}PIP_TRUSTED_HOST: ${{ contains(inputs.runner, 'aks') && 'pip-proxy.pip-proxy.svc.cluster.local' || '' }}@@ -473,7 +483,7 @@ jobs:- name: Store artifacts to a shared driveid: store_artifacts- if: ${{ inputs.event-name != 'schedule' && inputs.event-name != 'merge_group' }}+ if: ${{ inputs.store_artifacts && inputs.event-name != 'schedule' && inputs.event-name != 'merge_group' }}uses: ./openvino/.github/actions/store_artifactswith:artifacts: |