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 target-branch input for workflow_dispatch trigger (#30419)
Alina Kladieva53c7b410c514
diff --git a/.github/workflows/android_arm64.yml b/.github/workflows/android_arm64.ymlindex 63e0815812d..bd135614b7c 100644--- a/.github/workflows/android_arm64.yml+++ b/.github/workflows/android_arm64.yml@@ -1,6 +1,11 @@name: Android ARM64 with vcpkgon:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:diff --git a/.github/workflows/android_x64.yml b/.github/workflows/android_x64.ymlindex 5982990f0cd..903572ac59c 100644--- a/.github/workflows/android_x64.yml+++ b/.github/workflows/android_x64.yml@@ -1,6 +1,11 @@name: Android x64on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -16,7 +21,7 @@ concurrency:permissions: read-allenv:- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.ymlindex 4673f5e934d..3a1c6c5a796 100644--- a/.github/workflows/coverity.yml+++ b/.github/workflows/coverity.yml@@ -8,6 +8,10 @@ on:openvinoContribRef:description: 'Branch, tag or commit hash to clone openvino_contrib from. Taken from event context if not set'type: string+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falseschedule:# run daily at 00:00- cron: '0 0 * * *'@@ -22,7 +26,7 @@ permissions: read-allenv:PIP_CACHE_PATH: /mount/caches/pip/linuxPYTHON_VERSION: '3.11'- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:diff --git a/.github/workflows/debian_10_arm.yml b/.github/workflows/debian_10_arm.ymlindex 2da5dea80ca..ab77649cdcf 100644--- a/.github/workflows/debian_10_arm.yml+++ b/.github/workflows/debian_10_arm.yml@@ -1,6 +1,11 @@name: Debian 10 ARMon:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -94,6 +99,7 @@ jobs:build-contrib: falsebuild-rpm-packages: falsebuild-additional-python-packages: true+ target-branch: ${{ inputs.target-branch }}cmake-options: >--DTHREADS_PTHREAD_ARG=-pthread-DCMAKE_COMPILE_WARNING_AS_ERROR=OFFdiff --git a/.github/workflows/fedora_29.yml b/.github/workflows/fedora_29.ymlindex 70b0dea565a..23993e07fe1 100644--- a/.github/workflows/fedora_29.yml+++ b/.github/workflows/fedora_29.yml@@ -1,6 +1,11 @@name: Fedora 29 (RHEL 8.4), Python 3.9on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -93,6 +98,7 @@ jobs:build-js: falsebuild-rpm-packages: truebuild-additional-python-packages: true+ target-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja'-DENABLE_CPPLINT=OFFdiff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.ymlindex 7cbb7ac12f7..39e2fbe0ccf 100644--- a/.github/workflows/job_build_linux.yml+++ b/.github/workflows/job_build_linux.yml@@ -56,12 +56,16 @@ on:type: booleanrequired: falsedefault: false+ target-branch:+ description: 'Target branch for the build; taken from GitHub context by default'+ type: string+ required: falsepermissions: read-allenv:PIP_CACHE_PATH: /mount/caches/pip/linux- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Build:@@ -406,6 +410,7 @@ jobs:${{ env.STORE_WHEELS == 'true' && format('{0}/wheels', env.INSTALL_WHEELS_DIR) || '' }}storage_dir: ${{ env.PRODUCT_TYPE }}storage_root: ${{ env.ARTIFACTS_SHARE }}+ branch_name: ${{ inputs.target-branch }}env:STORE_WHEELS: ${{ inputs.os != 'debian_10' && inputs.arch != 'arm' }}STORE_JS: ${{ fromJSON(inputs.affected-components).JS_API && inputs.build-js }}diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.ymlindex 547a3c76223..740fdd64a10 100644--- a/.github/workflows/job_build_windows.yml+++ b/.github/workflows/job_build_windows.yml@@ -414,5 +414,6 @@ jobs:${{ env.STORE_WHEELS == 'true' && format('{0}/wheels', env.INSTALL_WHEELS_DIR) || '' }}storage_dir: ${{ env.PRODUCT_TYPE }}storage_root: ${{ env.ARTIFACTS_SHARE }}+ branch_name: ${{ inputs.target-branch }}env:STORE_WHEELS: ${{ inputs.build-type != 'Debug' }}diff --git a/.github/workflows/job_tokenizers.yml b/.github/workflows/job_tokenizers.ymlindex 061480580ca..1af6df0a06e 100644--- a/.github/workflows/job_tokenizers.yml+++ b/.github/workflows/job_tokenizers.yml@@ -24,13 +24,17 @@ on:description: 'Python version to setup. E.g., "3.11"'type: stringrequired: true+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepermissions: read-allenv:PIP_CACHE_PATH_LINUX: /mount/caches/pip/linuxPIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Openvino_tokenizers:diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.ymlindex 241e4b73428..d8d9ca380ba 100644--- a/.github/workflows/linux_arm64.yml+++ b/.github/workflows/linux_arm64.yml@@ -1,6 +1,11 @@name: Linux ARM64 (Ubuntu 20.04, Python 3.11)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -17,7 +22,7 @@ permissions: read-allenv:PIP_CACHE_PATH: /mount/caches/pip/linux- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:@@ -98,6 +103,7 @@ jobs:build-debian-packages: falsebuild-rpm-packages: falsebuild-additional-python-packages: true+ target-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja Multi-Config'-DENABLE_CPPLINT=OFFdiff --git a/.github/workflows/linux_conditional_compilation.yml b/.github/workflows/linux_conditional_compilation.ymlindex 8a2c254e2e6..4d273da9659 100644--- a/.github/workflows/linux_conditional_compilation.yml+++ b/.github/workflows/linux_conditional_compilation.yml@@ -1,6 +1,11 @@name: Linux Static CC (Ubuntu 22.04, Python 3.11, Clang)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -18,7 +23,7 @@ permissions: read-allenv:PIP_CACHE_PATH: /mount/caches/pip/linuxPYTHON_VERSION: '3.11'- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:diff --git a/.github/workflows/linux_riscv.yml b/.github/workflows/linux_riscv.ymlindex 2f499386592..816d8607f40 100644--- a/.github/workflows/linux_riscv.yml+++ b/.github/workflows/linux_riscv.yml@@ -1,6 +1,11 @@name: Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -16,7 +21,7 @@ concurrency:permissions: read-allenv:- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:diff --git a/.github/workflows/linux_riscv_xuantie_dev_cpu.yml b/.github/workflows/linux_riscv_xuantie_dev_cpu.ymlindex 3f29b2632d4..92bfa262de8 100644--- a/.github/workflows/linux_riscv_xuantie_dev_cpu.yml+++ b/.github/workflows/linux_riscv_xuantie_dev_cpu.yml@@ -2,6 +2,10 @@ name: Linux RISC-V with Xuantie (Ubuntu 22.04, Python 3.10)on:workflow_dispatch:inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsetestFilterType:description: 'Filter for google tests {SMOKE | CONCISE}'required: true@@ -26,7 +30,7 @@ concurrency:permissions: read-allenv:- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}RISCV_TOOLCHAIN_ROOT: /opt/riscvjobs:diff --git a/.github/workflows/linux_sanitizers.yml b/.github/workflows/linux_sanitizers.ymlindex 6fff0768983..a2f22d36474 100644--- a/.github/workflows/linux_sanitizers.yml+++ b/.github/workflows/linux_sanitizers.yml@@ -14,6 +14,10 @@ on:description: 'Filter for func_tests.'required: falsedefault: '*smoke*'+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:paths:- '.github/workflows/linux_sanitizers.yml'@@ -26,7 +30,7 @@ concurrency:permissions: read-allenv:- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}BUILD_DIR: /__w/openvino/openvino/openvino_buildOPENVINO_REPO: /__w/openvino/openvino/openvinoINSTALL_TEST_DIR: /__w/openvino/openvino/openvino_install/tests/diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.ymlindex 2cab71ecfb0..a912adec880 100644--- a/.github/workflows/mac.yml+++ b/.github/workflows/mac.yml@@ -1,6 +1,11 @@name: macOS (Python 3.11)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falseschedule:# at 00:00 on workdays- cron: '0 0 * * 1,2,3,4,5'@@ -35,6 +40,7 @@ env:NODEJS_VERSION: '21'MANIFEST_FILE: manifest.ymlPRODUCT_TYPE: public_macos_x86_64_release+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:@@ -102,6 +108,7 @@ jobs:with:repository: 'openvinotoolkit/openvino_contrib'path: 'openvino_contrib'+ ref: ${{ env.TARGET_BRANCH }}## Print system info@@ -419,3 +426,4 @@ jobs:${{ fromJSON(needs.smart_ci.outputs.affected_components).JS_API && format('{0}/{1}', env.ARTIFACTS_DIR, needs.Build.outputs.openvino_npm_archive_name) || '' }}storage_dir: ${{ env.PRODUCT_TYPE }}storage_root: ${{ env.ARTIFACTS_SHARE }}+ branch_name: ${{ inputs.target-branch }}diff --git a/.github/workflows/mac_arm64.yml b/.github/workflows/mac_arm64.ymlindex f02d7140dde..6bc90ee4684 100644--- a/.github/workflows/mac_arm64.yml+++ b/.github/workflows/mac_arm64.yml@@ -1,6 +1,11 @@name: macOS ARM64 (Python 3.11)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falseschedule:# at 00:00 on workdays- cron: '0 0 * * 1,2,3,4,5'@@ -33,6 +38,7 @@ permissions: read-allenv:PYTHON_VERSION: '3.11'NODEJS_VERSION: '21'+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:@@ -95,6 +101,7 @@ jobs:with:repository: 'openvinotoolkit/openvino_contrib'path: 'openvino_contrib'+ ref: ${{ env.TARGET_BRANCH }}## Print system infodiff --git a/.github/workflows/manylinux_2014.yml b/.github/workflows/manylinux_2014.ymlindex 5efa3624526..8a4507f3652 100644--- a/.github/workflows/manylinux_2014.yml+++ b/.github/workflows/manylinux_2014.yml@@ -1,6 +1,11 @@name: Manylinux 2014on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -254,6 +259,7 @@ jobs:${{ env.INSTALL_WHEELS_DIR }}/wheelsstorage_dir: ${{ env.PRODUCT_TYPE }}storage_root: ${{ env.ARTIFACTS_SHARE }}+ branch_name: ${{ inputs.target-branch }}Python_API_Tests:name: Python API testsdiff --git a/.github/workflows/ovc.yml b/.github/workflows/ovc.ymlindex d83f7b9b971..6e64a945bd3 100644--- a/.github/workflows/ovc.yml+++ b/.github/workflows/ovc.yml@@ -1,5 +1,11 @@name: OVCon:+ workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsemerge_group:push:branches:diff --git a/.github/workflows/ubuntu_20.yml b/.github/workflows/ubuntu_20.ymlindex 9ed84f170b6..eca2b70bd44 100644--- a/.github/workflows/ubuntu_20.yml+++ b/.github/workflows/ubuntu_20.yml@@ -4,6 +4,11 @@ on:# at 00:00 on Wednesday and Saturday- cron: '0 0 * * 3,6'workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -99,6 +104,7 @@ jobs:build-js: falsebuild-rpm-packages: falsebuild-additional-python-packages: true+ target-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja Multi-Config'-DENABLE_CPPLINT=OFFdiff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.ymlindex 00258c3a3df..21827529250 100644--- a/.github/workflows/ubuntu_22.yml+++ b/.github/workflows/ubuntu_22.yml@@ -4,6 +4,11 @@ on:# at 00:00 on Wednesday and Saturday- cron: '0 0 * * 3,6'workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -21,7 +26,7 @@ permissions: read-allenv:PIP_CACHE_PATH: /mount/caches/pip/linuxPYTHON_VERSION: '3.11'- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:@@ -102,6 +107,7 @@ jobs:build-debian-packages: truebuild-rpm-packages: falsebuild-additional-python-packages: true+ target-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja Multi-Config'-DENABLE_CPPLINT=OFFdiff --git a/.github/workflows/ubuntu_22_dpcpp.yml b/.github/workflows/ubuntu_22_dpcpp.ymlindex a9df06def0f..25eb69befa7 100644--- a/.github/workflows/ubuntu_22_dpcpp.yml+++ b/.github/workflows/ubuntu_22_dpcpp.yml@@ -1,6 +1,11 @@name: Linux (Ubuntu 22.04, Python 3.11, Intel DPC++ Compiler)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:@@ -87,6 +92,7 @@ jobs:build-debian-packages: falsebuild-contrib: falsebuild-rpm-packages: false+ target-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja Multi-Config'-DENABLE_CPPLINT=OFFdiff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.ymlindex b47ae356bc6..084ee8e4886 100644--- a/.github/workflows/ubuntu_24.yml+++ b/.github/workflows/ubuntu_24.yml@@ -1,6 +1,11 @@name: Linux (Ubuntu 24.04, Python 3.12)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -96,6 +101,7 @@ jobs:build-debian-packages: truebuild-contrib: truebuild-additional-python-packages: true+ target-branch: ${{ inputs.target-branch }}cmake-options: >--G 'Ninja Multi-Config'-DENABLE_CPPLINT=OFFdiff --git a/.github/workflows/webassembly.yml b/.github/workflows/webassembly.ymlindex b30f8d0c887..4e8c8f96462 100644--- a/.github/workflows/webassembly.yml+++ b/.github/workflows/webassembly.yml@@ -1,6 +1,11 @@name: Webassemblyon:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.ymlindex ae0d2e45370..c5be1c5fa8f 100644--- a/.github/workflows/windows_conditional_compilation.yml+++ b/.github/workflows/windows_conditional_compilation.yml@@ -1,6 +1,11 @@name: Windows Conditional Compilation (VS 2022, Python 3.11)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falseschedule:# run daily at 00:00- cron: '0 0 * * *'@@ -20,7 +25,7 @@ permissions: read-allenv:PYTHON_VERSION: '3.11'- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:diff --git a/.github/workflows/windows_vs2022_debug.yml b/.github/workflows/windows_vs2022_debug.ymlindex 1eae380a01e..02fe16a4462 100644--- a/.github/workflows/windows_vs2022_debug.yml+++ b/.github/workflows/windows_vs2022_debug.yml@@ -1,6 +1,11 @@name: Windows (VS 2022, Python 3.11, Debug)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsemerge_group:pull_request:push:@@ -15,7 +20,7 @@ concurrency:permissions: read-allenv:- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Smart_CI:diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.ymlindex c2630a3d461..eb96083c61f 100644--- a/.github/workflows/windows_vs2022_release.yml+++ b/.github/workflows/windows_vs2022_release.yml@@ -1,6 +1,11 @@name: Windows (VS 2022, Python 3.11, Release)on:workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: falsepull_request:merge_group:push:@@ -13,7 +18,7 @@ concurrency:cancel-in-progress: trueenv:- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}PIP_CACHE_PATH: "C:\\mount\\caches\\pip\\win"PYTHON_VERSION: '3.11'