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 :
@@ -105,6 +109,17 @@ jobs:
105
109
path : ${{ env.SRC_DIR }}
106
110
submodules : recursive
107
111
112
+ - name : Generate product manifest
113
+ id : create_manifest
114
+ uses : openvinotoolkit/openvino/.github/actions/create_manifest@master
115
+ with :
116
+ repos : |
117
+ ${{ env.SRC_DIR }}
118
+ product_type : ${{ env.BASE_PRODUCT_TYPE }}_${{ matrix.build-type }})
119
+ target_arch : ' x86_64'
120
+ build_type : ${{ matrix.build-type }}
121
+ save_to : ${{ env.MANIFEST_PATH }}
122
+
108
123
- name : Download OpenVINO package
109
124
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
110
125
with :
@@ -149,6 +164,14 @@ jobs:
149
164
path : ${{ env.INSTALL_TESTS_DIR }}
150
165
if-no-files-found : ' error'
151
166
167
+ - name : Upload manifest
168
+ if : ${{ always() }}
169
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
170
+ with :
171
+ name : manifest_${{ matrix.build-type }}
172
+ path : ${{ env.MANIFEST_PATH }}
173
+ if-no-files-found : ' error'
174
+
152
175
genai_build_wheel :
153
176
name : Build Wheel
154
177
needs : [ openvino_download ]
@@ -169,6 +192,7 @@ jobs:
169
192
INSTALL_DIR : ${{ github.workspace }}/install
170
193
WHEELS_DIR : ${{ github.workspace }}/install/wheels
171
194
SRC_DIR : ${{ github.workspace }}/src
195
+ MANIFEST_PATH : ${{ github.workspace }}/manifest.yml
172
196
173
197
steps :
174
198
- name : Clone openvino.genai
@@ -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