Skip to content

Commit

Permalink
[libc++] Make sure that we use the libc++ CI pipeline when no project…
Browse files Browse the repository at this point in the history
…s have changed

That is necessary for scheduled builds to work.
  • Loading branch information
ldionne committed Nov 12, 2022
1 parent 1651d83 commit 5b0c217
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions libcxx/utils/ci/generate-buildkite-pipeline
Expand Up @@ -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

0 comments on commit 5b0c217

Please sign in to comment.