[libcxx-commits] [libcxx] 5b0c217 - [libc++] Make sure that we use the libc++ CI pipeline when no projects have changed

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Sat Nov 12 10:10:20 PST 2022


Author: Louis Dionne
Date: 2022-11-12T08:10:10-10:00
New Revision: 5b0c21753bdb6dc5612028e92a249097ab509ea8

URL: https://github.com/llvm/llvm-project/commit/5b0c21753bdb6dc5612028e92a249097ab509ea8
DIFF: https://github.com/llvm/llvm-project/commit/5b0c21753bdb6dc5612028e92a249097ab509ea8.diff

LOG: [libc++] Make sure that we use the libc++ CI pipeline when no projects have changed

That is necessary for scheduled builds to work.

Added: 
    

Modified: 
    libcxx/utils/ci/generate-buildkite-pipeline

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ci/generate-buildkite-pipeline b/libcxx/utils/ci/generate-buildkite-pipeline
index a917440bd3e9..a10309ceabac 100755
--- a/libcxx/utils/ci/generate-buildkite-pipeline
+++ b/libcxx/utils/ci/generate-buildkite-pipeline
@@ -12,7 +12,15 @@
 #
 
 if git 
diff  --name-only HEAD~1 | grep -q -E "^libcxx/|^libcxxabi/|^libunwind/|^runtimes/|^cmake/"; then
-  cat libcxx/utils/ci/buildkite-pipeline.yml
-elif git 
diff  --name-only HEAD~1 | grep -q -E "^clang/"; then
+  LIBCXX_CHANGED=true
+fi
+
+if git 
diff  --name-only HEAD~1 | grep -q -E "^clang/"; then
+  CLANG_CHANGED=true
+fi
+
+if [[ "${CLANG_CHANGED}" == "true" && "${LIBCXX_CHANGED}" != "true" ]]; then
   cat libcxx/utils/ci/buildkite-pipeline-clang.yml
+else
+  cat libcxx/utils/ci/buildkite-pipeline.yml
 fi


        


More information about the libcxx-commits mailing list