|
46 | 46 | default: 3
|
47 | 47 | e2e_binaries_artifact:
|
48 | 48 | type: string
|
49 |
| - required: False |
| 49 | + required: false |
| 50 | + pack_release: |
| 51 | + type: string |
| 52 | + required: false |
50 | 53 |
|
51 | 54 | outputs:
|
52 | 55 | build_conclusion:
|
|
100 | 103 | options:
|
101 | 104 | - 3
|
102 | 105 |
|
| 106 | + pack_release: |
| 107 | + type: string |
| 108 | + required: false |
| 109 | + |
103 | 110 | permissions: read-all
|
104 | 111 |
|
105 | 112 | jobs:
|
@@ -215,11 +222,26 @@ jobs:
|
215 | 222 | # TODO consider moving this to Dockerfile.
|
216 | 223 | export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
|
217 | 224 | LIT_OPTS="--allow-empty-runs" LIT_FILTER="e2e_test_requirements" cmake --build $GITHUB_WORKSPACE/build --target check-sycl
|
218 |
| - - name: Install |
| 225 | + - name: Install sycl-toolchain |
219 | 226 | if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
|
220 |
| - # TODO replace utility installation with a single CMake target |
221 | 227 | run: |
|
222 | 228 | cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain
|
| 229 | +
|
| 230 | + - name: Pack toolchain release |
| 231 | + if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.pack_release == 'true' }} |
| 232 | + run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/build/install . |
| 233 | + - name: Upload toolchain release |
| 234 | + if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.pack_release == 'true' }} |
| 235 | + uses: actions/upload-artifact@v4 |
| 236 | + with: |
| 237 | + name: sycl_linux_release |
| 238 | + path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} |
| 239 | + retention-days: ${{ inputs.retention-days }} |
| 240 | + |
| 241 | + - name: Install utilities |
| 242 | + if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }} |
| 243 | + # TODO replace utility installation with a single CMake target |
| 244 | + run: | |
223 | 245 | cmake --build $GITHUB_WORKSPACE/build --target utils/FileCheck/install
|
224 | 246 | cmake --build $GITHUB_WORKSPACE/build --target utils/count/install
|
225 | 247 | cmake --build $GITHUB_WORKSPACE/build --target utils/not/install
|
|
0 commit comments