Skip to content

Commit 180e9e5

Browse files
committed
[libc++] Add a CI job to test the Runtimes build
Differential Revision: https://reviews.llvm.org/D97888
1 parent 9037730 commit 180e9e5

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

libcxx/utils/ci/buildkite-pipeline.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,17 @@ steps:
288288
- exit_status: -1 # Agent was lost
289289
limit: 2
290290

291+
- label: "Runtimes build"
292+
command: "libcxx/utils/ci/run-buildbot runtimes-build"
293+
artifact_paths:
294+
- "**/test-results.xml"
295+
agents:
296+
queue: "libcxx-builders"
297+
retry:
298+
automatic:
299+
- exit_status: -1 # Agent was lost
300+
limit: 2
301+
291302
# All jobs defined before this `wait` will run whenever a CI job is started.
292303
# Jobs defined after the `wait` will run only if all the jobs above succeeded.
293304
# We use this to reduce the load on testers that have more constrained resources

libcxx/utils/ci/run-buildbot

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,28 @@ unified-standalone)
353353

354354
check-cxx-cxxabi
355355
;;
356+
runtimes-build)
357+
export CC=clang
358+
export CXX=clang++
359+
360+
clean
361+
362+
echo "--- Generating CMake"
363+
cmake -S "${MONOREPO_ROOT}/llvm" \
364+
-B "${BUILD_DIR}" \
365+
-GNinja \
366+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
367+
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
368+
-DLLVM_ENABLE_PROJECTS="clang" \
369+
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
370+
-DLLVM_RUNTIME_TARGETS="x86_64-unknown-linux-gnu"
371+
372+
echo "+++ Running the libc++ and libc++abi tests"
373+
${NINJA} -C "${BUILD_DIR}" check-runtimes
374+
375+
echo "--- Installing libc++ and libc++abi to a fake location"
376+
${NINJA} -C "${BUILD_DIR}" install-cxx install-cxxabi
377+
;;
356378
legacy-standalone)
357379
export CC=clang
358380
export CXX=clang++

0 commit comments

Comments
 (0)