Skip to content

Commit cc21caf

Browse files
[CI] Test 'all' cmake target in nightly (#18701)
There was a case where we broke build for the `all` target but `sycl-toolchain` worked, so build `all` to catch this. Nightly run [here](https://github.com/intel/llvm/actions/runs/15302502386), failures not because of this. We need the `||` part in ` ${{ inputs.build_target || 'sycl-toolchain' }}` because for the `workflow_dispatch` case, we already have 10 input args which is the max so we can't always have a `inputs.build_target` available without more work. Closes: #18648 --------- Signed-off-by: Sarnie, Nick <[email protected]> Co-authored-by: aelovikov-intel <[email protected]>
1 parent 731b967 commit cc21caf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
build_artifact_suffix:
3333
type: string
3434
required: true
35+
build_target:
36+
type: string
37+
required: false
38+
default: sycl-toolchain
3539
artifact_archive_name:
3640
type: string
3741
default: llvm_sycl.tar.zst
@@ -177,7 +181,8 @@ jobs:
177181
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
178182
- name: Compile
179183
id: build
180-
run: cmake --build $GITHUB_WORKSPACE/build --target sycl-toolchain
184+
# Emulate default value for manual dispatch as we've run out of available arguments.
185+
run: cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
181186
- name: check-llvm
182187
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
183188
run: |

.github/workflows/sycl-nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
build_cache_suffix: sprod_shared
3434
build_artifact_suffix: sprod_shared
3535
build_configure_extra_args: '--shared-libs --hip --cuda --native_cpu --no-assertions'
36+
build_target: all
3637

3738
artifact_archive_name: sycl_linux_shared.tar.zst
3839

0 commit comments

Comments
 (0)