Skip to content

Commit be12544

Browse files
committed
[GHA] Save Linux artifacts to cloud share
1 parent 19744f5 commit be12544

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

.github/workflows/linux.yml

+60-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ env:
2727
HF_HOME: /mount/caches/huggingface
2828
GENAI_ARCHIVE_NAME: genai.tar.gz
2929
GENAI_SAMPLES_NAME: genai_samples.tar.gz
30+
ARTIFACTS_SHARE: '/mount/build-artifacts'
31+
BASE_PRODUCT_TYPE: public_linux_ubuntu_22_04_x86_64
32+
GENAI_WHEELS_ARTIFACT_NAME: 'genai_wheels'
33+
GENAI_ARCHIVE_ARTIFACT_BASE_NAME: 'genai_archive'
3034

3135
jobs:
3236
openvino_download:
@@ -97,6 +101,7 @@ jobs:
97101
INSTALL_TESTS_DIR: ${{ github.workspace }}/tests
98102
BUILD_DIR: ${{ github.workspace }}/build
99103
SRC_DIR: ${{ github.workspace }}/src
104+
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
100105

101106
steps:
102107
- name: Clone openvino.genai
@@ -105,6 +110,17 @@ jobs:
105110
path: ${{ env.SRC_DIR }}
106111
submodules: recursive
107112

113+
- name: Generate product manifest
114+
id: create_manifest
115+
uses: openvinotoolkit/openvino/.github/actions/create_manifest@master
116+
with:
117+
repos: |
118+
${{ env.SRC_DIR }}
119+
product_type: ${{ env.BASE_PRODUCT_TYPE }}_${{ matrix.build-type }})
120+
target_arch: 'x86_64'
121+
build_type: ${{ matrix.build-type }}
122+
save_to: ${{ env.MANIFEST_PATH }}
123+
108124
- name: Download OpenVINO package
109125
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
110126
with:
@@ -149,6 +165,14 @@ jobs:
149165
path: ${{ env.INSTALL_TESTS_DIR }}
150166
if-no-files-found: 'error'
151167

168+
- name: Upload manifest
169+
if: ${{ always() }}
170+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
171+
with:
172+
name: manifest_${{ matrix.build-type }}
173+
path: ${{ env.MANIFEST_PATH }}
174+
if-no-files-found: 'error'
175+
152176
genai_build_wheel:
153177
name: Build Wheel
154178
needs: [ openvino_download ]
@@ -208,10 +232,45 @@ jobs:
208232
if: ${{ always() }}
209233
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
210234
with:
211-
name: genai_wheels
235+
name: ${{ env.GENAI_WHEELS_ARTIFACT_NAME }}
212236
path: ${{ env.INSTALL_DIR }}
213237
if-no-files-found: 'error'
214238

239+
store_artifacts:
240+
name: Store build artifacts
241+
strategy:
242+
matrix:
243+
build_type: [Release]
244+
needs: [openvino_download, genai_build_wheel, genai_build_cmake]
245+
timeout-minutes: 10
246+
defaults:
247+
run:
248+
shell: bash
249+
runs-on: aks-linux-2-cores-8gb
250+
container:
251+
image: openvinogithubactions.azurecr.io/library/python:3.12-slim
252+
volumes:
253+
- /mount:/mount
254+
- ${{ github.workspace }}:${{ github.workspace }}
255+
env:
256+
CPACK_PACKAGE: ${{ github.workspace }}/ov_genai.tar.gz
257+
WHEEL_PACKAGE: ${{ github.workspace }}/wheels
258+
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
259+
260+
steps:
261+
- name: Download genai package & manifest
262+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
263+
with:
264+
pattern: "{${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}_${{ matrix.build_type }},manifest_${{ matrix.build_type }}}"
265+
path: ${{ github.workspace }}
266+
merge-multiple: true
267+
268+
- name: Download genai wheels
269+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
270+
with:
271+
name: ${{ env.GENAI_WHEELS_ARTIFACT_NAME }}
272+
path: ${{ env.WHEEL_PACKAGE }}
273+
215274
genai_build_samples:
216275
name: Build Samples - ${{ matrix.build-type }}
217276
strategy:

0 commit comments

Comments
 (0)