Skip to content

Commit 19ae2a9

Browse files
authored
[GHA] Manylinux added CI tags and manifest (openvinotoolkit#27540)
### Details: - added actions to save artifacts for Jenkins - create_manifest and store_artifacts - Added overall status workflow ### Tickets: - *ticket-id*
1 parent fefe0c3 commit 19ae2a9

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.github/actions/common/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class EventType(Enum):
1616
'public_linux_ubuntu_24_04_x86_64_release',
1717
'public_windows_vs2019_Release',
1818
'public_windows_vs2019_Debug',
19+
'public_manylinux2014_x86_64_release',
1920
)
2021
ProductType = Enum('ProductType', {t.upper(): t for t in productTypes})
2122

.github/workflows/manylinux_2014.yml

+46-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING -e DOCKER_CONFIG -v ${{ github.workspace }}:${{ github.workspace }}
8989
env:
9090
CMAKE_BUILD_TYPE: 'Release'
91+
ARCH: 'x86_64'
9192
OPENVINO_REPO: ${{ github.workspace }}/src
9293
INSTALL_DIR: ${{ github.workspace }}/install/openvino
9394
INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
@@ -99,6 +100,9 @@ jobs:
99100
SCCACHE_SERVER_PORT: 35555
100101
SCCACHE_CACHE_SIZE: 50G
101102
SCCACHE_AZURE_KEY_PREFIX: manylinux_2014
103+
ARTIFACTS_SHARE: "/mount/build-artifacts"
104+
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
105+
PRODUCT_TYPE: public_manylinux2014_x86_64_release
102106

103107
steps:
104108
- name: Clone OpenVINO
@@ -109,6 +113,17 @@ jobs:
109113

110114
- name: System info
111115
uses: ./src/.github/actions/system_info
116+
117+
- name: Generate product manifest and set CI_BUILD_NUMBER & CI_BUILD_DEV_TAG
118+
id: create_manifest
119+
uses: ./src/.github/actions/create_manifest
120+
with:
121+
repos: |
122+
${{ env.OPENVINO_REPO }}
123+
product_type: ${{ env.PRODUCT_TYPE }}
124+
target_arch: ${{ env.ARCH }}
125+
build_type: ${{ env.CMAKE_BUILD_TYPE }}
126+
save_to: ${{ env.MANIFEST_PATH }}
112127

113128
- name: Create docker build cache
114129
run: |
@@ -128,6 +143,8 @@ jobs:
128143
-e SCCACHE_AZURE_KEY_PREFIX \
129144
-e CMAKE_CXX_COMPILER_LAUNCHER \
130145
-e CMAKE_C_COMPILER_LAUNCHER \
146+
-e CI_BUILD_NUMBER \
147+
-e CI_BUILD_DEV_TAG \
131148
-w /work/src \
132149
${{ fromJSON(needs.docker.outputs.images).ov_build.manylinux2014_x86_64 }} \
133150
/bin/bash -c "
@@ -158,6 +175,8 @@ jobs:
158175
-e SCCACHE_AZURE_KEY_PREFIX \
159176
-e CMAKE_CXX_COMPILER_LAUNCHER \
160177
-e CMAKE_C_COMPILER_LAUNCHER \
178+
-e CI_BUILD_NUMBER \
179+
-e CI_BUILD_DEV_TAG \
161180
-w /work/src \
162181
${{ fromJSON(needs.docker.outputs.images).ov_build.manylinux2014_x86_64 }} \
163182
/bin/bash -c "
@@ -188,4 +207,30 @@ jobs:
188207
with:
189208
name: openvino_wheels
190209
path: ${{ env.INSTALL_WHEELS_DIR }}/wheels/*.whl
191-
if-no-files-found: 'error'
210+
if-no-files-found: 'error'
211+
212+
- name: Store artifacts to a shared drive
213+
id: store_artifacts
214+
if: ${{ always() }}
215+
uses: ./src/.github/actions/store_artifacts
216+
with:
217+
artifacts: |
218+
${{ env.BUILD_DIR }}/openvino_package.tar.gz
219+
${{ env.MANIFEST_PATH }}
220+
${{ env.INSTALL_WHEELS_DIR }}/wheels
221+
storage_dir: ${{ env.PRODUCT_TYPE }}
222+
storage_root: ${{ env.ARTIFACTS_SHARE }}
223+
224+
Overall_Status:
225+
name: ci/gha_overall_status_manylinux2014
226+
needs: [Smart_CI, Build]
227+
if: ${{ always() }}
228+
runs-on: ubuntu-latest
229+
steps:
230+
- name: Check status of all jobs
231+
if: >-
232+
${{
233+
contains(needs.*.result, 'failure') ||
234+
contains(needs.*.result, 'cancelled')
235+
}}
236+
run: exit 1

0 commit comments

Comments
 (0)