[libcxx-commits] [libcxx] 180e9e5 - [libc++] Add a CI job to test the Runtimes build
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 30 06:00:39 PDT 2021
Author: Louis Dionne
Date: 2021-03-30T09:00:30-04:00
New Revision: 180e9e5eab49cf36e47985667fe4feca5f8183e5
URL: https://github.com/llvm/llvm-project/commit/180e9e5eab49cf36e47985667fe4feca5f8183e5
DIFF: https://github.com/llvm/llvm-project/commit/180e9e5eab49cf36e47985667fe4feca5f8183e5.diff
LOG: [libc++] Add a CI job to test the Runtimes build
Differential Revision: https://reviews.llvm.org/D97888
Added:
Modified:
libcxx/utils/ci/buildkite-pipeline.yml
libcxx/utils/ci/run-buildbot
Removed:
################################################################################
diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml
index b538bfc29998..c57f467e0ee2 100644
--- a/libcxx/utils/ci/buildkite-pipeline.yml
+++ b/libcxx/utils/ci/buildkite-pipeline.yml
@@ -288,6 +288,17 @@ steps:
- 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
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index fec5c7787b87..0b677cd7ec0e 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -353,6 +353,28 @@ unified-standalone)
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-gnu"
+
+ 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++
More information about the libcxx-commits
mailing list