Skip to content

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

[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.yml
index 63e0815812d..bd135614b7c 100644
--- a/.github/workflows/android_arm64.yml
+++ b/.github/workflows/android_arm64.yml
@@ -1,6 +1,11 @@
name: Android ARM64 with vcpkg
on:
workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
merge_group:
push:
diff --git a/.github/workflows/android_x64.yml b/.github/workflows/android_x64.yml
index 5982990f0cd..903572ac59c 100644
--- a/.github/workflows/android_x64.yml
+++ b/.github/workflows/android_x64.yml
@@ -1,6 +1,11 @@
name: Android x64
on:
workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
merge_group:
push:
@@ -16,7 +21,7 @@ concurrency:
permissions: read-all
env:
- 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.yml
index 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: false
schedule:
# run daily at 00:00
- cron: '0 0 * * *'
@@ -22,7 +26,7 @@ permissions: read-all
env:
PIP_CACHE_PATH: /mount/caches/pip/linux
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:
diff --git a/.github/workflows/debian_10_arm.yml b/.github/workflows/debian_10_arm.yml
index 2da5dea80ca..ab77649cdcf 100644
--- a/.github/workflows/debian_10_arm.yml
+++ b/.github/workflows/debian_10_arm.yml
@@ -1,6 +1,11 @@
name: Debian 10 ARM
on:
workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
merge_group:
push:
@@ -94,6 +99,7 @@ jobs:
build-contrib: false
build-rpm-packages: false
build-additional-python-packages: true
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-DTHREADS_PTHREAD_ARG=-pthread
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF
diff --git a/.github/workflows/fedora_29.yml b/.github/workflows/fedora_29.yml
index 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.9
on:
workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
merge_group:
push:
@@ -93,6 +98,7 @@ jobs:
build-js: false
build-rpm-packages: true
build-additional-python-packages: true
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-G 'Ninja'
-DENABLE_CPPLINT=OFF
diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.yml
index 7cbb7ac12f7..39e2fbe0ccf 100644
--- a/.github/workflows/job_build_linux.yml
+++ b/.github/workflows/job_build_linux.yml
@@ -56,12 +56,16 @@ on:
type: boolean
required: false
default: false
+ target-branch:
+ description: 'Target branch for the build; taken from GitHub context by default'
+ type: string
+ required: false
permissions: read-all
env:
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.yml
index 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.yml
index 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: string
required: true
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
permissions: read-all
env:
PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
PIP_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.yml
index 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: false
pull_request:
merge_group:
push:
@@ -17,7 +22,7 @@ permissions: read-all
env:
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: false
build-rpm-packages: false
build-additional-python-packages: true
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-G 'Ninja Multi-Config'
-DENABLE_CPPLINT=OFF
diff --git a/.github/workflows/linux_conditional_compilation.yml b/.github/workflows/linux_conditional_compilation.yml
index 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: false
pull_request:
merge_group:
push:
@@ -18,7 +23,7 @@ permissions: read-all
env:
PIP_CACHE_PATH: /mount/caches/pip/linux
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/linux_riscv.yml b/.github/workflows/linux_riscv.yml
index 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: false
pull_request:
merge_group:
push:
@@ -16,7 +21,7 @@ concurrency:
permissions: read-all
env:
- 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.yml
index 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: false
testFilterType:
description: 'Filter for google tests {SMOKE | CONCISE}'
required: true
@@ -26,7 +30,7 @@ concurrency:
permissions: read-all
env:
- 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/riscv
jobs:
diff --git a/.github/workflows/linux_sanitizers.yml b/.github/workflows/linux_sanitizers.yml
index 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: false
default: '*smoke*'
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
paths:
- '.github/workflows/linux_sanitizers.yml'
@@ -26,7 +30,7 @@ concurrency:
permissions: read-all
env:
- 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_build
OPENVINO_REPO: /__w/openvino/openvino/openvino
INSTALL_TEST_DIR: /__w/openvino/openvino/openvino_install/tests/
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index 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: false
schedule:
# at 00:00 on workdays
- cron: '0 0 * * 1,2,3,4,5'
@@ -35,6 +40,7 @@ env:
NODEJS_VERSION: '21'
MANIFEST_FILE: manifest.yml
PRODUCT_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.yml
index 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: false
schedule:
# at 00:00 on workdays
- cron: '0 0 * * 1,2,3,4,5'
@@ -33,6 +38,7 @@ permissions: read-all
env:
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 info
diff --git a/.github/workflows/manylinux_2014.yml b/.github/workflows/manylinux_2014.yml
index 5efa3624526..8a4507f3652 100644
--- a/.github/workflows/manylinux_2014.yml
+++ b/.github/workflows/manylinux_2014.yml
@@ -1,6 +1,11 @@
name: Manylinux 2014
on:
workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
merge_group:
push:
@@ -254,6 +259,7 @@ jobs:
${{ env.INSTALL_WHEELS_DIR }}/wheels
storage_dir: ${{ env.PRODUCT_TYPE }}
storage_root: ${{ env.ARTIFACTS_SHARE }}
+ branch_name: ${{ inputs.target-branch }}
Python_API_Tests:
name: Python API tests
diff --git a/.github/workflows/ovc.yml b/.github/workflows/ovc.yml
index d83f7b9b971..6e64a945bd3 100644
--- a/.github/workflows/ovc.yml
+++ b/.github/workflows/ovc.yml
@@ -1,5 +1,11 @@
name: OVC
on:
+ workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
merge_group:
push:
branches:
diff --git a/.github/workflows/ubuntu_20.yml b/.github/workflows/ubuntu_20.yml
index 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: false
pull_request:
merge_group:
push:
@@ -99,6 +104,7 @@ jobs:
build-js: false
build-rpm-packages: false
build-additional-python-packages: true
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-G 'Ninja Multi-Config'
-DENABLE_CPPLINT=OFF
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index 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: false
pull_request:
merge_group:
push:
@@ -21,7 +26,7 @@ permissions: read-all
env:
PIP_CACHE_PATH: /mount/caches/pip/linux
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:
@@ -102,6 +107,7 @@ jobs:
build-debian-packages: true
build-rpm-packages: false
build-additional-python-packages: true
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-G 'Ninja Multi-Config'
-DENABLE_CPPLINT=OFF
diff --git a/.github/workflows/ubuntu_22_dpcpp.yml b/.github/workflows/ubuntu_22_dpcpp.yml
index 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: false
pull_request:
merge_group:
@@ -87,6 +92,7 @@ jobs:
build-debian-packages: false
build-contrib: false
build-rpm-packages: false
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-G 'Ninja Multi-Config'
-DENABLE_CPPLINT=OFF
diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.yml
index 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: false
pull_request:
merge_group:
push:
@@ -96,6 +101,7 @@ jobs:
build-debian-packages: true
build-contrib: true
build-additional-python-packages: true
+ target-branch: ${{ inputs.target-branch }}
cmake-options: >-
-G 'Ninja Multi-Config'
-DENABLE_CPPLINT=OFF
diff --git a/.github/workflows/webassembly.yml b/.github/workflows/webassembly.yml
index b30f8d0c887..4e8c8f96462 100644
--- a/.github/workflows/webassembly.yml
+++ b/.github/workflows/webassembly.yml
@@ -1,6 +1,11 @@
name: Webassembly
on:
workflow_dispatch:
+ inputs:
+ target-branch:
+ description: 'Target branch for the build; taken from event context by default'
+ type: string
+ required: false
pull_request:
merge_group:
push:
diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.yml
index 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: false
schedule:
# run daily at 00:00
- cron: '0 0 * * *'
@@ -20,7 +25,7 @@ permissions: read-all
env:
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.yml
index 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: false
merge_group:
pull_request:
push:
@@ -15,7 +20,7 @@ concurrency:
permissions: read-all
env:
- 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.yml
index 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: false
pull_request:
merge_group:
push:
@@ -13,7 +18,7 @@ concurrency:
cancel-in-progress: true
env:
- 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'