Skip to content

Commit d639a6b

Browse files
authored
[CI] Add libc++ build job to nightly (#19628)
We are trying to be more packagable by Linux distros so I cleaned up libc++ support, add a build job to lock it down in the nightly. Run results [here](https://github.com/intel/llvm/actions/runs/16603313011/job/46968573846), `check-clang` fail unrelated, I'm fixing it in another PR. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent e0760a3 commit d639a6b

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Reusable SYCL Linux build workflow
22

3+
defaults:
4+
run:
5+
shell: bash
6+
37
on:
48
workflow_call:
59
inputs:
@@ -185,12 +189,21 @@ jobs:
185189
- name: check-llvm
186190
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
187191
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+
188197
cmake --build $GITHUB_WORKSPACE/build --target check-llvm
189198
- name: check-clang
190199
if: always() && !cancelled() && contains(inputs.changes, 'clang')
191200
run: |
192201
# Can we move this to Dockerfile? Hopefully, noop on Windows.
193202
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
194207
cmake --build $GITHUB_WORKSPACE/build --target check-clang
195208
- name: check-sycl
196209
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
@@ -280,7 +293,6 @@ jobs:
280293

281294
- name: Source OneAPI TBB vars.sh
282295
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
283-
shell: bash
284296
run: |
285297
# https://github.com/actions/runner/issues/1964 prevents us from using
286298
# the ENTRYPOINT in the image.

.github/workflows/sycl-nightly.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ jobs:
5151

5252
artifact_archive_name: sycl_linux_oneapi.tar.zst
5353

54+
ubuntu2404_libcxx_build:
55+
if: github.repository == 'intel/llvm'
56+
uses: ./.github/workflows/sycl-linux-build.yml
57+
secrets: inherit
58+
with:
59+
build_cache_root: "/__w/"
60+
build_cache_suffix: libcxx
61+
build_artifact_suffix: libcxx
62+
build_configure_extra_args: --use-libcxx -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=OFF
63+
cc: clang-18
64+
cxx: clang++-18
65+
66+
artifact_archive_name: sycl_linux_libcxx.tar.zst
67+
5468
ubuntu2204_test:
5569
needs: [ubuntu2204_build]
5670
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}

sycl/unittests/misc/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
set(sycl_lib_dir $<TARGET_FILE_DIR:sycl>)
22
add_definitions(-DSYCL_LIB_DIR="${sycl_lib_dir}")
3+
# https://github.com/intel/llvm/issues/19626
4+
if(NOT LLVM_LIBCXX_USED)
35
add_sycl_unittest(MiscTests SHARED
46
CircularBuffer.cpp
57
OsUtils.cpp
68
PropertyUtils.cpp
79
)
10+
endif()
811
add_subdirectory(LinkGraph)

0 commit comments

Comments
 (0)