18
18
runs-on : ubuntu-latest
19
19
outputs :
20
20
affected_components : " ${{ steps.smart_ci.outputs.affected_components }}"
21
+ changed_components : " ${{ steps.smart_ci.outputs.changed_components }}"
21
22
skip_workflow : " ${{ steps.smart_ci.outputs.skip_workflow }}"
22
23
steps :
23
24
- name : checkout action
@@ -38,15 +39,42 @@ jobs:
38
39
skip_when_only_listed_labels_set : ' docs'
39
40
skip_when_only_listed_files_changed : ' *.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'
40
41
41
- Build :
42
+ - name : Show affected components
43
+ run : |
44
+ echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}"
45
+ shell : bash
46
+
47
+ Docker :
42
48
needs : Smart_CI
49
+ runs-on : aks-linux-4-cores-16gb-docker-build
50
+ container :
51
+ image : openvinogithubactions.azurecr.io/docker_build:0.2
52
+ volumes :
53
+ - /mount:/mount
54
+ outputs :
55
+ images : " ${{ steps.handle_docker.outputs.images }}"
56
+ steps :
57
+ - name : Checkout
58
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
59
+
60
+ - uses : ./.github/actions/handle_docker
61
+ id : handle_docker
62
+ with :
63
+ images : |
64
+ ov_build/fedora_33
65
+ registry : ' openvinogithubactions.azurecr.io'
66
+ dockerfiles_root_dir : ' .github/dockerfiles'
67
+ changed_components : ${{ needs.smart_ci.outputs.changed_components }}
68
+
69
+ Build :
70
+ needs : [Docker, Smart_CI]
43
71
timeout-minutes : 150
44
72
defaults :
45
73
run :
46
74
shell : bash
47
75
runs-on : aks-linux-16-cores-32gb
48
76
container :
49
- image : fedora:33
77
+ image : ${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_33 }}
50
78
volumes :
51
79
- /mount:/mount
52
80
options : -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
67
95
SCCACHE_AZURE_KEY_PREFIX : fedora33_x86_64_Release
68
96
if : " !needs.smart_ci.outputs.skip_workflow"
69
97
steps :
70
- - name : Install git
71
- run : yum update -y && yum install -y git
72
-
73
98
- name : Clone OpenVINO
74
99
uses : actions/checkout@v4
75
100
with :
@@ -87,14 +112,6 @@ jobs:
87
112
# Dependencies
88
113
#
89
114
90
- - name : Install build dependencies
91
- run : bash ${OPENVINO_REPO}/install_build_dependencies.sh
92
-
93
- - name : Install sccache
94
- uses : mozilla-actions/sccache-action@v0.0.4
95
- with :
96
- version : " v0.7.5"
97
-
98
115
- name : Install python dependencies
99
116
run : |
100
117
python3 -m pip install -U pip
@@ -202,14 +219,14 @@ jobs:
202
219
if-no-files-found : ' error'
203
220
204
221
RPM_Packages :
205
- needs : Build
222
+ needs : [Docker, Build]
206
223
timeout-minutes : 10
207
224
defaults :
208
225
run :
209
226
shell : bash
210
- runs-on : ubuntu-20.04
227
+ runs-on : aks-linux-4-cores-16gb
211
228
container :
212
- image : fedora:33
229
+ image : ${{ fromJSON(needs.docker.outputs.images).ov_build.fedora_33 }}
213
230
env :
214
231
RPM_PACKAGES_DIR : /__w/openvino/packages/
215
232
0 commit comments