20
20
PYTHON_VERSION : ' 3.10'
21
21
TARGET_BRANCH : ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}
22
22
CCACHE_MAXSIZE : 500Mi
23
-
23
+
24
24
jobs :
25
25
openvino_download :
26
26
name : Download OpenVINO
34
34
defaults :
35
35
run :
36
36
shell : bash
37
- runs-on : aks-linux-2-cores-8gb
37
+ runs-on : aks-linux-medium
38
38
container :
39
39
image : ' openvinogithubactions.azurecr.io/openvino_provider:0.1.0'
40
40
volumes :
@@ -48,14 +48,14 @@ jobs:
48
48
platform : macos_12_6
49
49
commit_packages_to_provide : wheels
50
50
revision : latest_nightly
51
-
51
+
52
52
- uses : openvinotoolkit/openvino/.github/actions/openvino_provider@master
53
53
id : openvino_latest_download
54
54
with :
55
55
platform : macos_12_6
56
56
commit_packages_to_provide : openvino_js_package.tar.gz
57
57
revision : latest_available_commit
58
-
58
+
59
59
genai_build_cmake :
60
60
name : Build cpack - ${{ matrix.build-type }}
61
61
strategy :
@@ -91,16 +91,16 @@ jobs:
91
91
name : ${{ needs.openvino_download.outputs.ov_artifact_name }}
92
92
path : ${{ env.OV_INSTALL_DIR }}
93
93
merge-multiple : true
94
-
94
+
95
95
- name : Setup Python ${{ env.PYTHON_VERSION }}
96
96
uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
97
97
with :
98
98
python-version : ${{ env.PYTHON_VERSION }}
99
99
cache : ' pip'
100
-
100
+
101
101
- name : Install build dependencies
102
102
run : brew install coreutils ninja ccache
103
-
103
+
104
104
- name : Setup ccache
105
105
id : ccache-restore
106
106
uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
@@ -109,7 +109,7 @@ jobs:
109
109
restore-keys : |
110
110
${{ runner.os }}-${{ runner.arch }}-ccache-${{ env.TARGET_BRANCH }}
111
111
path : ${{ env.CCACHE_DIR }}
112
-
112
+
113
113
- name : Clean ccache stats
114
114
run : ccache --zero-stats --show-config
115
115
@@ -122,14 +122,14 @@ jobs:
122
122
123
123
- name : Show ccache stats
124
124
run : ccache --show-stats
125
-
125
+
126
126
- name : Save ccache
127
127
if : always() && steps.ccache-restore.outputs.cache-hit != 'true' && github.event_name == 'push'
128
128
uses : actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
129
129
with :
130
130
key : ${{ steps.ccache-restore.outputs.cache-primary-key }}
131
131
path : ${{ env.CCACHE_DIR }}
132
-
132
+
133
133
- name : Upload Archive Distribution Package
134
134
if : always()
135
135
uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
@@ -168,7 +168,7 @@ jobs:
168
168
name : ${{ needs.openvino_download.outputs.ov_artifact_name }}
169
169
path : ${{ env.OV_INSTALL_DIR }}
170
170
merge-multiple : true
171
-
171
+
172
172
- name : Setup Python ${{ env.PYTHON_VERSION }}
173
173
uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
174
174
with :
@@ -177,7 +177,7 @@ jobs:
177
177
178
178
- name : Install build dependencies
179
179
run : brew install coreutils ccache
180
-
180
+
181
181
- name : Setup ccache
182
182
id : ccache-restore
183
183
uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
@@ -186,10 +186,10 @@ jobs:
186
186
restore-keys : |
187
187
${{ runner.os }}-${{ runner.arch }}-ccache-${{ env.TARGET_BRANCH }}
188
188
path : ${{ env.CCACHE_DIR }}
189
-
189
+
190
190
- name : Clean ccache stats
191
191
run : ccache --zero-stats --show-config
192
-
192
+
193
193
- name : Build Tokenizers Wheel
194
194
run : |
195
195
python -m pip wheel -v --no-deps --wheel-dir ${{ env.WHEELS_DIR }} \
@@ -214,7 +214,7 @@ jobs:
214
214
with :
215
215
key : ${{ steps.ccache-restore.outputs.cache-primary-key }}
216
216
path : ${{ env.CCACHE_DIR }}
217
-
217
+
218
218
- name : Upload Wheels
219
219
if : always()
220
220
uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
@@ -332,7 +332,7 @@ jobs:
332
332
name : genai_nodejs_bindings
333
333
path : ${{ env.INSTALL_DIR }}
334
334
if-no-files-found : ' error'
335
-
335
+
336
336
genai_tests_wheel :
337
337
name : Python (${{ matrix.test.name}}) Tests (wheel)
338
338
needs : [ openvino_download, genai_build_wheel ]
@@ -379,13 +379,13 @@ jobs:
379
379
pattern : " {${{ needs.openvino_download.outputs.ov_artifact_name }},genai_wheels}"
380
380
path : ${{ env.INSTALL_DIR }}
381
381
merge-multiple : true
382
-
382
+
383
383
- name : Setup Python ${{ env.PYTHON_VERSION }}
384
384
uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
385
385
with :
386
386
python-version : ${{ env.PYTHON_VERSION }}
387
387
cache : ' pip'
388
-
388
+
389
389
- name : Install OpenVINO wheel
390
390
run : |
391
391
python3 -m pip install openvino==${{ needs.openvino_download.outputs.ov_version }} ${{ needs.openvino_download.outputs.ov_wheel_source }}
@@ -439,13 +439,13 @@ jobs:
439
439
pattern : " {${{ needs.openvino_download.outputs.ov_artifact_name }},genai_cpack_${{ matrix.build-type }},genai_samples_${{ matrix.build-type }},genai_wheels}"
440
440
path : ${{ env.INSTALL_DIR }}
441
441
merge-multiple : true
442
-
442
+
443
443
- name : Setup Python ${{ env.PYTHON_VERSION }}
444
444
uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
445
445
with :
446
446
python-version : ${{ env.PYTHON_VERSION }}
447
447
cache : ' pip'
448
-
448
+
449
449
- name : Install OpenVINO wheel
450
450
run : |
451
451
python3 -m pip install openvino==${{ needs.openvino_download.outputs.ov_version }} ${{ needs.openvino_download.outputs.ov_wheel_source }}
@@ -457,7 +457,7 @@ jobs:
457
457
packages : " openvino_tokenizers[transformers];openvino_genai[testing]"
458
458
requirements_files : " ${{ env.SRC_DIR }}/samples/requirements.txt"
459
459
local_wheel_dir : ${{ env.INSTALL_DIR }}/wheels
460
-
460
+
461
461
- name : Fix C++ samples permissions
462
462
run : chmod +x ${{ env.INSTALL_DIR }}/samples_bin/*
463
463
@@ -490,7 +490,7 @@ jobs:
490
490
with :
491
491
path : ${{ env.SRC_DIR }}
492
492
submodules : recursive
493
-
493
+
494
494
- name : Download OpenVINO Artifacts
495
495
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
496
496
with :
0 commit comments