Skip to content

Commit bc3228c

Browse files
committed
[GHA] Save Windows artifacts to cloud share
1 parent be12544 commit bc3228c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/windows.yml

+59
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ env:
2222
CMAKE_CXX_COMPILER_LAUNCHER: ccache
2323
CMAKE_C_COMPILER_LAUNCHER: ccache
2424
CCACHE_MAXSIZE: 500Mi
25+
ARTIFACTS_SHARE: '/mount/build-artifacts'
26+
BASE_PRODUCT_TYPE: public_windows_vs2022
27+
GENAI_WHEELS_ARTIFACT_NAME: 'genai_wheels'
28+
GENAI_ARCHIVE_ARTIFACT_BASE_NAME: 'genai_cpack'
2529

2630
jobs:
2731
openvino_download:
@@ -70,6 +74,7 @@ jobs:
7074
SRC_DIR: ${{ github.workspace }}\src\genai
7175
BUILD_DIR: ${{ github.workspace }}\build\genai
7276
CCACHE_DIR: ${{ github.workspace }}\ccache
77+
MANIFEST_PATH: ${{ github.workspace }}\manifest.yml
7378

7479
steps:
7580
- name: Clone genai
@@ -78,6 +83,17 @@ jobs:
7883
submodules: recursive
7984
path: ${{ env.SRC_DIR }}
8085

86+
- name: Generate product manifest
87+
id: create_manifest
88+
uses: openvinotoolkit/openvino/.github/actions/create_manifest@master
89+
with:
90+
repos: |
91+
${{ env.SRC_DIR }}
92+
product_type: ${{ env.BASE_PRODUCT_TYPE }}_${{ matrix.build-type }}
93+
target_arch: 'x86_64'
94+
build_type: ${{ matrix.build-type }}
95+
save_to: ${{ env.MANIFEST_PATH }}
96+
8197
- name: Setup Python ${{ env.PYTHON_VERSION }}
8298
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
8399
with:
@@ -174,6 +190,14 @@ jobs:
174190
name: genai_tests_${{ matrix.build-type }}
175191
path: ${{ env.INSTALL_TESTS_DIR }}
176192
if-no-files-found: 'error'
193+
194+
- name: Upload manifest
195+
if: ${{ always() }}
196+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
197+
with:
198+
name: manifest_${{ matrix.build-type }}
199+
path: ${{ env.MANIFEST_PATH }}
200+
if-no-files-found: 'error'
177201

178202
genai_build_wheel:
179203
name: genai wheel
@@ -280,6 +304,41 @@ jobs:
280304
path: ${{ env.INSTALL_DIR }}
281305
if-no-files-found: 'error'
282306

307+
store_artifacts:
308+
name: Store build artifacts
309+
strategy:
310+
matrix:
311+
build_type: [Release]
312+
needs: [openvino_download, genai_build_wheel, genai_build_cpack]
313+
timeout-minutes: 10
314+
defaults:
315+
run:
316+
shell: bash
317+
runs-on: aks-linux-2-cores-8gb
318+
container:
319+
image: openvinogithubactions.azurecr.io/library/python:3.12-slim
320+
volumes:
321+
- /mount:/mount
322+
- ${{ github.workspace }}:${{ github.workspace }}
323+
env:
324+
CPACK_PACKAGE: ${{ github.workspace }}/ov_genai.zip
325+
WHEEL_PACKAGE: ${{ github.workspace }}/wheels
326+
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
327+
328+
steps:
329+
- name: Download genai package & manifest
330+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
331+
with:
332+
pattern: "{${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}_${{ matrix.build-type }},manifest_${{ matrix.build-type }}}"
333+
path: ${{ github.workspace }}
334+
merge-multiple: true
335+
336+
- name: Download genai wheels
337+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
338+
with:
339+
name: ${{ env.GENAI_WHEELS_ARTIFACT_NAME }}
340+
path: ${{ env.WHEEL_PACKAGE }}
341+
283342
genai_build_samples:
284343
name: Build Samples - ${{ matrix.build-type }}
285344
strategy:

0 commit comments

Comments
 (0)