Skip to content

Commit b19d7ae

Browse files
authored
[CI] Pack release build on Win (#17951)
Follow up to #17781
1 parent 10da83a commit b19d7ae

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/sycl-windows-build.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
type: string
3030
required: false
3131
default: "cl"
32+
pack_release:
33+
type: string
34+
required: false
3235

3336
outputs:
3437
build_conclusion:
@@ -66,6 +69,9 @@ on:
6669
options:
6770
- cl
6871
- icx
72+
pack_release:
73+
type: string
74+
required: false
6975

7076
permissions: read-all
7177

@@ -179,12 +185,27 @@ jobs:
179185
name: sycl_windows_abi_symbols
180186
path: build/new_sycl_symbols_windows.dump
181187
retention-days: ${{ inputs.retention-days }}
182-
- name: Install
188+
- name: Install sycl-toolchain
189+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
190+
run: |
191+
cmake --build build --target deploy-sycl-toolchain
192+
193+
- name: Pack toolchain release
194+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.pack_release == 'true' }}
195+
run: tar -czf ${{ inputs.artifact_archive_name }} -C install .
196+
- name: Upload toolchain release
197+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.pack_release == 'true' }}
198+
uses: actions/upload-artifact@v4
199+
with:
200+
name: sycl_windows_release
201+
path: ${{ inputs.artifact_archive_name }}
202+
retention-days: ${{ inputs.retention-days }}
203+
204+
- name: Install utilities
183205
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
184206
shell: bash
185207
# TODO replace utility installation with a single CMake target
186208
run: |
187-
cmake --build build --target deploy-sycl-toolchain
188209
cmake --build build --target utils/FileCheck/install
189210
cmake --build build --target utils/count/install
190211
cmake --build build --target utils/not/install

0 commit comments

Comments
 (0)