@@ -17,29 +17,83 @@ concurrency:
17
17
cancel-in-progress : true
18
18
19
19
env :
20
- PYTHON_VERSION : ' 3.10'
21
- LINUX_OV_ARCHIVE_URL : https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2025.0.0-17539-6abe2e39391/l_openvino_toolkit_ubuntu20_2025.0.0.dev20241205_x86_64.tgz
22
- WINDOWS_OV_ARCHIVE_URL : https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2025.0.0-17539-6abe2e39391/w_openvino_toolkit_windows_2025.0.0.dev20241205_x86_64.zip
20
+ PYTHON_VERSION : ' 3.11'
23
21
OV_INSTALL_DIR : ${{ github.workspace }}/ov
24
22
25
23
jobs :
24
+ openvino_download_linux :
25
+ name : Download OpenVINO for Linux
26
+ outputs :
27
+ status : ${{ steps.openvino_download.outcome }}
28
+ ov_artifact_name : ${{ steps.openvino_download.outputs.ov_artifact_name }}
29
+ ov_wheel_source : ${{ steps.openvino_download.outputs.ov_wheel_source }}
30
+ ov_version : ${{ steps.openvino_download.outputs.ov_version }}
31
+ timeout-minutes : 10
32
+ defaults :
33
+ run :
34
+ shell : bash
35
+ runs-on : aks-linux-2-cores-8gb
36
+ container :
37
+ image : ' openvinogithubactions.azurecr.io/openvino_provider:0.1.0'
38
+ volumes :
39
+ - /mount:/mount
40
+ - ${{ github.workspace }}:${{ github.workspace }}
41
+
42
+ steps :
43
+ - uses : openvinotoolkit/openvino/.github/actions/openvino_provider@master
44
+ id : openvino_download
45
+ with :
46
+ platform : ubuntu22
47
+ commit_packages_to_provide : wheels
48
+ revision : 747d0e7e105c9f2c9966a37861f95b1c7f886868
49
+
50
+ openvino_download_windows :
51
+ name : Download OpenVINO for Windows
52
+ outputs :
53
+ status : ${{ steps.openvino_download.outcome }}
54
+ ov_artifact_name : ${{ steps.openvino_download.outputs.ov_artifact_name }}
55
+ ov_wheel_source : ${{ steps.openvino_download.outputs.ov_wheel_source }}
56
+ ov_version : ${{ steps.openvino_download.outputs.ov_version }}
57
+ timeout-minutes : 10
58
+ defaults :
59
+ run :
60
+ shell : bash
61
+ runs-on : aks-linux-2-cores-8gb
62
+ container :
63
+ image : ' openvinogithubactions.azurecr.io/openvino_provider:0.1.0'
64
+ volumes :
65
+ - /mount:/mount
66
+ - ${{ github.workspace }}:${{ github.workspace }}
67
+
68
+ steps :
69
+ - uses : openvinotoolkit/openvino/.github/actions/openvino_provider@master
70
+ id : openvino_download
71
+ with :
72
+ platform : windows
73
+ commit_packages_to_provide : wheels
74
+ revision : 747d0e7e105c9f2c9966a37861f95b1c7f886868
75
+
26
76
stable_diffusion_1_5_cpp-linux :
27
- runs-on : ubuntu-20.04-8-cores
77
+ runs-on : ubuntu-22.04-8-cores
78
+ needs : [ openvino_download_linux ]
28
79
defaults :
29
80
run :
30
81
shell : bash -l {0}
31
82
env :
32
83
build_dir : ${{ github.workspace }}//build
84
+ SRC_DIR : ${{ github.workspace }}
85
+
33
86
steps :
34
87
- uses : actions/checkout@v4
35
88
with :
36
89
submodules : recursive
37
90
38
- - name : Download OpenVINO archive
39
- run : |
40
- wget ${{ env.LINUX_OV_ARCHIVE_URL}} --progress=bar:force:noscroll -O openvino_package.tar.gz
41
- mkdir ${{ env.OV_INSTALL_DIR }}
42
- tar -xzf openvino_package.tar.gz -C ${{ env.OV_INSTALL_DIR }} --strip-components=1
91
+ - name : Download OpenVINO package
92
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
93
+ with :
94
+ name : ${{ needs.openvino_download_linux.outputs.ov_artifact_name }}
95
+ path : ${{ env.OV_INSTALL_DIR }}
96
+ merge-multiple : true
43
97
44
98
- name : Setup Python ${{ env.PYTHON_VERSION }}
45
99
uses : actions/setup-python@v5
@@ -58,9 +112,10 @@ jobs:
58
112
59
113
- name : Install python dependencies
60
114
run : |
61
- source openvino_sd_cpp/bin/activate
62
- python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
63
- python -m pip install -r ./samples/requirements.txt
115
+ source ${{ github.workspace }}/openvino_sd_cpp/bin/activate
116
+ python -m pip install ${{ env.SRC_DIR }}/thirdparty/openvino_tokenizers/[transformers] ${{ needs.openvino_download_linux.outputs.ov_wheel_source }}
117
+ python -m pip install -r ${{ env.SRC_DIR }}/samples/requirements.txt
118
+ working-directory : ${{ env.OV_INSTALL_DIR }}
64
119
65
120
- name : Download and convert models and tokenizer
66
121
run : |
@@ -95,25 +150,26 @@ jobs:
95
150
PYTHONPATH : ${{ env.build_dir }}
96
151
97
152
stable_diffusion_1_5_cpp-windows :
153
+ needs : [ openvino_download_windows ]
98
154
runs-on : windows-2019
99
155
defaults :
100
156
run :
101
157
shell : pwsh
102
158
env :
103
159
build_dir : ${{ github.workspace }}\build
160
+ SRC_DIR : ${{ github.workspace }}
161
+
104
162
steps :
105
163
- uses : actions/checkout@v4
106
164
with :
107
165
submodules : recursive
108
166
109
- - name : Download OpenVINO archive
110
- run : |
111
- mkdir ${{ env.OV_INSTALL_DIR }}
112
- pushd ${{ env.OV_INSTALL_DIR }}
113
- Invoke-WebRequest "${{ env.WINDOWS_OV_ARCHIVE_URL}}" -OutFile "openvino_package.zip"
114
- Expand-Archive openvino_package.zip -DestinationPath ./tmp
115
- mv ./tmp/*/* .
116
- popd
167
+ - name : Download OpenVINO package
168
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
169
+ with :
170
+ name : ${{ needs.openvino_download_windows.outputs.ov_artifact_name }}
171
+ path : ${{ env.OV_INSTALL_DIR }}
172
+ merge-multiple : true
117
173
118
174
- name : Setup Python ${{ env.PYTHON_VERSION }}
119
175
uses : actions/setup-python@v5
@@ -132,9 +188,10 @@ jobs:
132
188
133
189
- name : Install python dependencies
134
190
run : |
135
- . "./openvino_sd_cpp/Scripts/Activate.ps1"
136
- python -m pip install ./thirdparty/openvino_tokenizers/[transformers] --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
137
- python -m pip install -r ./samples/requirements.txt
191
+ . "${{ github.workspace }}/openvino_sd_cpp/Scripts/Activate.ps1"
192
+ python -m pip install ${{ env.SRC_DIR }}/thirdparty/openvino_tokenizers/[transformers] ${{ needs.openvino_download_windows.outputs.ov_wheel_source }}
193
+ python -m pip install -r ${{ env.SRC_DIR }}/samples/requirements.txt
194
+ working-directory : ${{ env.OV_INSTALL_DIR }}
138
195
139
196
- name : Download and convert models and tokenizer
140
197
run : |
0 commit comments