[libcxx-commits] [PATCH] D97888: [libc++] Add a CI job to test the Runtimes build
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 16 11:58:21 PDT 2021
ldionne updated this revision to Diff 331054.
ldionne added a comment.
Rebase onto main
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97888/new/
https://reviews.llvm.org/D97888
Files:
libcxx/utils/ci/buildkite-pipeline.yml
libcxx/utils/ci/run-buildbot
Index: libcxx/utils/ci/run-buildbot
===================================================================
--- libcxx/utils/ci/run-buildbot
+++ libcxx/utils/ci/run-buildbot
@@ -348,6 +348,28 @@
check-cxx-cxxabi
;;
+runtimes-build)
+ export CC=clang
+ export CXX=clang++
+
+ clean
+
+ echo "--- Generating CMake"
+ cmake -S "${MONOREPO_ROOT}/llvm" \
+ -B "${BUILD_DIR}" \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+ -DLLVM_ENABLE_PROJECTS="clang" \
+ -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
+ -DLLVM_RUNTIME_TARGETS="x86_64-unknown-linux"
+
+ echo "+++ Running the libc++ and libc++abi tests"
+ ${NINJA} -C "${BUILD_DIR}" check-runtimes
+
+ echo "--- Installing libc++ and libc++abi to a fake location"
+ ${NINJA} -C "${BUILD_DIR}" install-cxx install-cxxabi
+;;
legacy-standalone)
export CC=clang
export CXX=clang++
Index: libcxx/utils/ci/buildkite-pipeline.yml
===================================================================
--- libcxx/utils/ci/buildkite-pipeline.yml
+++ libcxx/utils/ci/buildkite-pipeline.yml
@@ -277,6 +277,17 @@
- exit_status: -1 # Agent was lost
limit: 2
+ - label: "Runtimes build"
+ command: "libcxx/utils/ci/run-buildbot runtimes-build"
+ artifact_paths:
+ - "**/test-results.xml"
+ agents:
+ queue: "libcxx-builders"
+ retry:
+ automatic:
+ - exit_status: -1 # Agent was lost
+ limit: 2
+
# All jobs defined before this `wait` will run whenever a CI job is started.
# Jobs defined after the `wait` will run only if all the jobs above succeeded.
# We use this to reduce the load on testers that have more constrained resources
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97888.331054.patch
Type: text/x-patch
Size: 1795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210316/6de3d23a/attachment.bin>
More information about the libcxx-commits
mailing list