|
63 | 63 | type: string |
64 | 64 | default: '' |
65 | 65 | required: False |
66 | | - e2e_binaries_archive: |
67 | | - type: string |
68 | | - default: '' |
69 | | - required: False |
70 | | - e2e_binaries_decompress_command: |
71 | | - type: string |
72 | | - default: '' |
73 | | - required: False |
74 | 66 |
|
75 | 67 | upload_artifact: |
76 | 68 | type: string |
77 | 69 | default: 'false' |
78 | 70 | artifact_suffix: |
79 | 71 | type: string |
80 | 72 | default: 'default' |
81 | | - artifact_archive_name: |
82 | | - type: string |
83 | | - default: e2e_binaries.tar.zst |
84 | 73 | retention-days: |
85 | 74 | description: 'E2E binaries artifact retention period' |
86 | 75 | type: string |
|
105 | 94 | default: 'false' |
106 | 95 | required: False |
107 | 96 |
|
108 | | - outputs: |
109 | | - artifact_archive_name: |
110 | | - value: ${{ jobs.run.outputs.artifact_archive_name }} |
111 | | - artifact_decompress_command: |
112 | | - value: ${{ jobs.run.outputs.artifact_decompress_command }} |
113 | | - |
114 | 97 | workflow_dispatch: |
115 | 98 | inputs: |
116 | 99 | runner: |
@@ -193,30 +176,8 @@ jobs: |
193 | 176 | container: |
194 | 177 | image: ${{ inputs.image }} |
195 | 178 | options: ${{ inputs.image_options }} |
196 | | - outputs: |
197 | | - artifact_archive_name: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} |
198 | | - artifact_decompress_command: ${{ steps.artifact_info.outputs.DECOMPRESS }} |
199 | 179 | env: ${{ fromJSON(inputs.env) }} |
200 | 180 | steps: |
201 | | - - name: Deduce artifact archive params |
202 | | - if: inputs.upload_artifact == 'true' |
203 | | - id: artifact_info |
204 | | - run: | |
205 | | - NAME="${{inputs.artifact_archive_name}}" |
206 | | - if [ -z "$NAME" ]; then |
207 | | - NAME=e2e_binaries.tar.zst |
208 | | - fi |
209 | | - echo ARCHIVE_NAME="$NAME" >> $GITHUB_OUTPUT |
210 | | - if [ "${NAME}" != "${NAME%.tar.gz}" ]; then |
211 | | - echo COMPRESS="gzip" >> $GITHUB_OUTPUT |
212 | | - echo DECOMPRESS="gunzip" >> $GITHUB_OUTPUT |
213 | | - elif [ "${NAME}" != "${NAME%.tar.zst}" ]; then |
214 | | - echo COMPRESS="zstd -9" >> $GITHUB_OUTPUT |
215 | | - echo DECOMPRESS="zstd" >> $GITHUB_OUTPUT |
216 | | - else |
217 | | - echo "Unsupported extension" |
218 | | - exit 1 |
219 | | - fi |
220 | 181 | - name: Reset Intel GPU |
221 | 182 | if: inputs.reset_intel_gpu == 'true' |
222 | 183 | run: | |
@@ -340,8 +301,7 @@ jobs: |
340 | 301 | if: inputs.e2e_binaries_artifact != '' |
341 | 302 | run: | |
342 | 303 | mkdir build-e2e |
343 | | - tar -I '${{ inputs.e2e_binaries_decompress_command }}' -xf ${{ inputs.e2e_binaries_archive }} -C build-e2e |
344 | | - rm -f ${{ inputs.e2e_binaries_artifact }} |
| 304 | + tar -I 'zstd' -xf e2e_binaries.tar.zst -C build-e2e |
345 | 305 |
|
346 | 306 | - name: Deduce E2E CMake options |
347 | 307 | if: inputs.tests_selector == 'e2e' && inputs.e2e_binaries_artifact == '' |
@@ -450,11 +410,11 @@ jobs: |
450 | 410 | exit $ret |
451 | 411 | - name: Pack e2e binaries |
452 | 412 | if: ${{ always() && !cancelled() && inputs.upload_artifact == 'true'}} |
453 | | - run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C ./build-e2e . |
| 413 | + run: tar -I 'zstd -9' -cf e2e_binaries.tar.zst -C ./build-e2e . |
454 | 414 | - name: Upload e2e binaries |
455 | 415 | if: ${{ always() && !cancelled() && inputs.upload_artifact == 'true'}} |
456 | 416 | uses: actions/upload-artifact@v4 |
457 | 417 | with: |
458 | 418 | name: sycl_e2e_bin_${{ inputs.artifact_suffix }} |
459 | | - path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} |
| 419 | + path: e2e_binaries.tar.zst |
460 | 420 | retention-days: ${{ inputs.retention-days }} |
0 commit comments