Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ad4fbf1

Browse files
committedMar 19, 2025·
Fixes for cpack
1 parent 1ca5336 commit ad4fbf1

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed
 

‎.github/workflows/linux.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
with:
117117
repos: |
118118
${{ env.SRC_DIR }}
119-
product_type: ${{ env.BASE_PRODUCT_TYPE }}_${{ matrix.build-type }})
119+
product_type: ${{ env.BASE_PRODUCT_TYPE }}_${{ matrix.build-type }}
120120
target_arch: 'x86_64'
121121
build_type: ${{ matrix.build-type }}
122122
save_to: ${{ env.MANIFEST_PATH }}
@@ -253,17 +253,29 @@ jobs:
253253
- /mount:/mount
254254
- ${{ github.workspace }}:${{ github.workspace }}
255255
env:
256+
CPACK_PATH: ${{ github.workspace }}/ov_genai
256257
CPACK_PACKAGE: ${{ github.workspace }}/ov_genai.tar.gz
257258
WHEEL_PACKAGE: ${{ github.workspace }}/wheels
258259
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
259260

260261
steps:
261-
- name: Download genai package & manifest
262+
- name: Download genai package
262263
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
263264
with:
264-
pattern: "{${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}_${{ matrix.build_type }},manifest_${{ matrix.build_type }}}"
265+
name: ${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}_${{ matrix.build-type }}
266+
path: ${{ env.CPACK_PATH }}
267+
268+
- name: Pack Artifacts
269+
run: |
270+
pushd ${CPACK_PATH}
271+
tar -czvf ${CPACK_PACKAGE} *
272+
popd
273+
274+
- name: Download manifest
275+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
276+
with:
277+
name: manifest_${{ matrix.build-type }}
265278
path: ${{ github.workspace }}
266-
merge-multiple: true
267279

268280
- name: Download genai wheels
269281
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9

‎.github/workflows/windows.yml

+28-6
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,16 @@ jobs:
159159
#
160160
# Upload build artifacts
161161
#
162+
163+
- name: Pack Artifacts
164+
run: |
165+
$file=Get-ChildItem -Path "${{ GENAI_INSTALL_DIR }}"
166+
$compress = @{
167+
Path = $file
168+
CompressionLevel = "Optimal"
169+
DestinationPath = "${{ env.BUILD_DIR }}/${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}.zip"
170+
}
171+
Compress-Archive @compress
162172
163173
- name: Save ccache
164174
if: always() && steps.ccache-restore.outputs.cache-hit != 'true' && github.event_name == 'push'
@@ -172,17 +182,17 @@ jobs:
172182
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
173183
with:
174184
name: genai_cpack_${{ matrix.build-type }}
175-
path: ${{ env.GENAI_INSTALL_DIR }}
185+
path: ${{ env.BUILD_DIR }}/*.zip
176186
if-no-files-found: 'error'
177-
187+
178188
- name: Upload Tools
179189
if: always()
180190
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
181191
with:
182192
name: genai_tools_${{ matrix.build-type }}
183193
path: ${{ env.INSTALL_TOOLS_DIR }}
184194
if-no-files-found: 'error'
185-
195+
186196
- name: Upload Tests
187197
if: always()
188198
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
@@ -321,17 +331,29 @@ jobs:
321331
- /mount:/mount
322332
- ${{ github.workspace }}:${{ github.workspace }}
323333
env:
334+
CPACK_PATH: ${{ github.workspace }}/ov_genai
324335
CPACK_PACKAGE: ${{ github.workspace }}/ov_genai.zip
325336
WHEEL_PACKAGE: ${{ github.workspace }}/wheels
326337
MANIFEST_PATH: ${{ github.workspace }}/manifest.yml
327338

328339
steps:
329-
- name: Download genai package & manifest
340+
- name: Download genai package
330341
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
331342
with:
332-
pattern: "{${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}_${{ matrix.build-type }},manifest_${{ matrix.build-type }}}"
343+
name: ${{ env.GENAI_ARCHIVE_ARTIFACT_BASE_NAME }}_${{ matrix.build-type }}
344+
path: ${{ env.CPACK_PATH }}
345+
346+
- name: Pack Artifacts
347+
run: |
348+
pushd ${CPACK_PATH}
349+
tar -czvf ${CPACK_PACKAGE} *
350+
popd
351+
352+
- name: Download manifest
353+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
354+
with:
355+
name: manifest_${{ matrix.build-type }}
333356
path: ${{ github.workspace }}
334-
merge-multiple: true
335357

336358
- name: Download genai wheels
337359
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9

0 commit comments

Comments
 (0)
Please sign in to comment.