|
22 | 22 | CMAKE_CXX_COMPILER_LAUNCHER: ccache
|
23 | 23 | CMAKE_C_COMPILER_LAUNCHER: ccache
|
24 | 24 | 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' |
25 | 29 |
|
26 | 30 | jobs:
|
27 | 31 | openvino_download:
|
|
70 | 74 | SRC_DIR: ${{ github.workspace }}\src\genai
|
71 | 75 | BUILD_DIR: ${{ github.workspace }}\build\genai
|
72 | 76 | CCACHE_DIR: ${{ github.workspace }}\ccache
|
| 77 | + MANIFEST_PATH: ${{ github.workspace }}\manifest.yml |
73 | 78 |
|
74 | 79 | steps:
|
75 | 80 | - name: Clone genai
|
|
78 | 83 | submodules: recursive
|
79 | 84 | path: ${{ env.SRC_DIR }}
|
80 | 85 |
|
| 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 | + |
81 | 97 | - name: Setup Python ${{ env.PYTHON_VERSION }}
|
82 | 98 | uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
83 | 99 | with:
|
@@ -174,6 +190,14 @@ jobs:
|
174 | 190 | name: genai_tests_${{ matrix.build-type }}
|
175 | 191 | path: ${{ env.INSTALL_TESTS_DIR }}
|
176 | 192 | 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' |
177 | 201 |
|
178 | 202 | genai_build_wheel:
|
179 | 203 | name: genai wheel
|
@@ -280,6 +304,41 @@ jobs:
|
280 | 304 | path: ${{ env.INSTALL_DIR }}
|
281 | 305 | if-no-files-found: 'error'
|
282 | 306 |
|
| 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 | + |
283 | 342 | genai_build_samples:
|
284 | 343 | name: Build Samples - ${{ matrix.build-type }}
|
285 | 344 | strategy:
|
|
0 commit comments