27
27
HF_HOME : /mount/caches/huggingface
28
28
GENAI_ARCHIVE_NAME : genai.tar.gz
29
29
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'
30
34
31
35
jobs :
32
36
openvino_download :
97
101
INSTALL_TESTS_DIR : ${{ github.workspace }}/tests
98
102
BUILD_DIR : ${{ github.workspace }}/build
99
103
SRC_DIR : ${{ github.workspace }}/src
104
+ MANIFEST_PATH : ${{ github.workspace }}/manifest.yml
100
105
101
106
steps :
102
107
- name : Clone openvino.genai
@@ -105,6 +110,17 @@ jobs:
105
110
path : ${{ env.SRC_DIR }}
106
111
submodules : recursive
107
112
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
+
108
124
- name : Download OpenVINO package
109
125
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
110
126
with :
@@ -149,6 +165,14 @@ jobs:
149
165
path : ${{ env.INSTALL_TESTS_DIR }}
150
166
if-no-files-found : ' error'
151
167
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
+
152
176
genai_build_wheel :
153
177
name : Build Wheel
154
178
needs : [ openvino_download ]
@@ -208,10 +232,45 @@ jobs:
208
232
if : ${{ always() }}
209
233
uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
210
234
with :
211
- name : genai_wheels
235
+ name : ${{ env.GENAI_WHEELS_ARTIFACT_NAME }}
212
236
path : ${{ env.INSTALL_DIR }}
213
237
if-no-files-found : ' error'
214
238
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
+
215
274
genai_build_samples :
216
275
name : Build Samples - ${{ matrix.build-type }}
217
276
strategy :
0 commit comments