Skip to content

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

[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.py
index 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.yml
index 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: true
build-contrib: true
build-additional-python-packages: true
+ build-variant: 'levelzero'
+ store_artifacts: false
target-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.yml
index 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: string
required: 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: boolean
required: false
default: false
+ store_artifacts:
+ description: 'Whether to store build artifacts on a shared drive'
+ type: boolean
+ required: false
+ default: true
install-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/wheels
DEVELOPER_PACKAGE_DIR: ${{ github.workspace }}/openvino/developer_package_install
BUILD_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) || '' }}_Release
ARTIFACTS_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) || '' }}_release
COVERAGE_NOTES_DIR: ${{ github.workspace }}/coverage_build_notes
PIP_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 drive
id: 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_artifacts
with:
artifacts: |