11name : Reusable SYCL Linux build workflow
22
3+ defaults :
4+ run :
5+ shell : bash
6+
37on :
48 workflow_call :
59 inputs :
4246 changes :
4347 type : string
4448 description : ' Filter matches for the changed files in the PR'
45- default : ' [llvm, clang, sycl, llvm_spirv, xptifw, libclc, libdevice ]'
49+ default : ' [llvm, clang, sycl, llvm_spirv, xptifw, libclc]'
4650 required : false
4751 retention-days :
4852 description : ' Artifacts retention period'
7074 type : choice
7175 options :
7276 - " []"
73- - ' [llvm, clang, sycl, llvm_spirv, xptifw, libclc, libdevice ]'
77+ - ' [llvm, clang, sycl, llvm_spirv, xptifw, libclc]'
7478 build_image :
7579 type : choice
7680 options :
@@ -177,21 +181,29 @@ jobs:
177181 -DCMAKE_C_COMPILER_LAUNCHER=ccache \
178182 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
179183 -DLLVM_INSTALL_UTILS=ON \
180- -DNATIVECPU_USE_OCK=Off \
181- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
184+ -DNATIVECPU_USE_OCK=Off
182185 - name : Compile
183186 id : build
184187 # Emulate default value for manual dispatch as we've run out of available arguments.
185188 run : cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
186189 - name : check-llvm
187190 if : always() && !cancelled() && contains(inputs.changes, 'llvm')
188191 run : |
192+ if [[ "${{ inputs.build_configure_extra_args }}" == *"--use-libcxx"* ]]; then
193+ # https://github.com/llvm/llvm-project/issues/59429
194+ export LIT_FILTER_OUT="ExecutionEngine/MCJIT"
195+ fi
196+
189197 cmake --build $GITHUB_WORKSPACE/build --target check-llvm
190198 - name : check-clang
191199 if : always() && !cancelled() && contains(inputs.changes, 'clang')
192200 run : |
193201 # Can we move this to Dockerfile? Hopefully, noop on Windows.
194202 export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
203+ if [[ "${{ inputs.build_configure_extra_args }}" == *"--use-libcxx"* ]]; then
204+ # https://github.com/llvm/llvm-project/issues/59428
205+ export LIT_FILTER_OUT="(E|e)xception"
206+ fi
195207 cmake --build $GITHUB_WORKSPACE/build --target check-clang
196208 - name : check-sycl
197209 if : always() && !cancelled() && contains(inputs.changes, 'sycl')
@@ -218,7 +230,7 @@ jobs:
218230 run : |
219231 cmake --build $GITHUB_WORKSPACE/build --target check-libclc
220232 - name : check-libdevice
221- if : always() && !cancelled() && contains(inputs.changes, 'libdevice ')
233+ if : always() && !cancelled() && contains(inputs.changes, 'sycl ')
222234 run : |
223235 cmake --build $GITHUB_WORKSPACE/build --target check-libdevice
224236 - name : Check E2E test requirements
@@ -281,7 +293,6 @@ jobs:
281293
282294 - name : Source OneAPI TBB vars.sh
283295 if : ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
284- shell : bash
285296 run : |
286297 # https://github.com/actions/runner/issues/1964 prevents us from using
287298 # the ENTRYPOINT in the image.
0 commit comments