Skip to content

Commit b62432d

Browse files
authored
[CI] Fix Linux OneAPI build LIT tests (#19641)
Dumb interaction between github workflow variable usage in bash scripts, the variable happens to contain quotes only for the oneAPI build so that broke when I added these bash `if` statements. Make it a bash var to fix it. Bad: https://github.com/intel/llvm/actions/runs/16612784850/job/47040968439 (HEAD) Good: https://github.com/intel/llvm/actions/runs/16627822780/job/47051427259 (this PR) --------- Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent fa6bc3d commit b62432d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,25 @@ jobs:
188188
run: cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
189189
- name: check-llvm
190190
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
191+
env:
192+
# Can't inline to support possible quotes inside:
193+
BUILD_CONFIGURE_EXTRA_ARGS: ${{ inputs.build_configure_extra_args }}
191194
run: |
192-
if [[ "${{ inputs.build_configure_extra_args }}" == *"--use-libcxx"* ]]; then
195+
if [[ "${BUILD_CONFIGURE_EXTRA_ARGS}" == *"--use-libcxx"* ]]; then
193196
# https://github.com/llvm/llvm-project/issues/59429
194197
export LIT_FILTER_OUT="ExecutionEngine/MCJIT"
195198
fi
196199
197200
cmake --build $GITHUB_WORKSPACE/build --target check-llvm
198201
- name: check-clang
199202
if: always() && !cancelled() && contains(inputs.changes, 'clang')
203+
env:
204+
# Can't inline to support possible quotes inside:
205+
BUILD_CONFIGURE_EXTRA_ARGS: ${{ inputs.build_configure_extra_args }}
200206
run: |
201207
# Can we move this to Dockerfile? Hopefully, noop on Windows.
202208
export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
203-
if [[ "${{ inputs.build_configure_extra_args }}" == *"--use-libcxx"* ]]; then
209+
if [[ "${BUILD_CONFIGURE_EXTRA_ARGS}" == *"--use-libcxx"* ]]; then
204210
# https://github.com/llvm/llvm-project/issues/59428
205211
export LIT_FILTER_OUT="(E|e)xception"
206212
fi

0 commit comments

Comments
 (0)