Skip to content

Commit 7f924a7

Browse files
committed
[CI] Add libc++ build job to nightly
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 8d1e141 commit 7f924a7

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:
@@ -186,12 +190,21 @@ jobs:
186190
- name: check-llvm
187191
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
188192
run: |
193+
if [[ "${{ inputs.build_configure_extra_args }}" == *"--use-libcxx"* ]]; then
194+
# https://github.com/llvm/llvm-project/issues/59429
195+
export LIT_FILTER_OUT="ExecutionEngine/MCJIT"
196+
fi
197+
189198
cmake --build $GITHUB_WORKSPACE/build --target check-llvm
190199
- name: check-clang
191200
if: always() && !cancelled() && contains(inputs.changes, 'clang')
192201
run: |
193202
# Can we move this to Dockerfile? Hopefully, noop on Windows.
194203
export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
204+
if [[ "${{ inputs.build_configure_extra_args }}" == *"--use-libcxx"* ]]; then
205+
# https://github.com/llvm/llvm-project/issues/59428
206+
export LIT_FILTER_OUT="(E|e)xception"
207+
fi
195208
cmake --build $GITHUB_WORKSPACE/build --target check-clang
196209
- name: check-sycl
197210
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
@@ -281,7 +294,6 @@ jobs:
281294

282295
- name: Source OneAPI TBB vars.sh
283296
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
284-
shell: bash
285297
run: |
286298
# https://github.com/actions/runner/issues/1964 prevents us from using
287299
# 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)