[libcxx-commits] [libcxx] [llvm] [libc++] Trigger the buildkite CI only if stages 1 and 2 already passed (PR #79209)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 23 14:21:45 PST 2024
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/79209
>From 27d9964aa93d530c8440f613cf4c8bf7ef5d5cc0 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Tue, 23 Jan 2024 21:54:38 +0100
Subject: [PATCH] [libc++] Trigger the buildkite CI only if stages 1 and 2
already passed
---
.ci/generate-buildkite-pipeline-premerge | 11 -----------
.github/workflows/libcxx-build-and-test.yaml | 11 +++++++++++
libcxx/include/libcxx_trigger | 0
3 files changed, 11 insertions(+), 11 deletions(-)
create mode 100644 libcxx/include/libcxx_trigger
diff --git a/.ci/generate-buildkite-pipeline-premerge b/.ci/generate-buildkite-pipeline-premerge
index f32eb7213b94027..318b968fbc70256 100755
--- a/.ci/generate-buildkite-pipeline-premerge
+++ b/.ci/generate-buildkite-pipeline-premerge
@@ -197,17 +197,6 @@ function check-targets() {
# Project specific pipelines.
-# If libc++ or one of the runtimes directories changed.
-if echo "$modified_dirs" | grep -q -E "^(libcxx|libcxxabi|libunwind|runtimes|cmake)$"; then
- cat <<EOF
-- trigger: "libcxx-ci"
- build:
- message: "${buildMessage}"
- commit: "${BUILDKITE_COMMIT}"
- branch: "${BUILDKITE_BRANCH}"
-EOF
-fi
-
# If clang changed.
if echo "$modified_dirs" | grep -q -E "^(clang)$"; then
cat <<EOF
diff --git a/.github/workflows/libcxx-build-and-test.yaml b/.github/workflows/libcxx-build-and-test.yaml
index 1666a687aa5d047..68f502fb25a74b4 100644
--- a/.github/workflows/libcxx-build-and-test.yaml
+++ b/.github/workflows/libcxx-build-and-test.yaml
@@ -207,3 +207,14 @@ jobs:
**/CMakeError.log
**/CMakeOutput.log
**/crash_diagnostics/*
+ buildkite-stage:
+ if: github.repository_owner == 'llvm'
+ runs-on: ubuntu-latest
+ continue-on-error: false
+ steps:
+ - name: Trigger Buildkite Pipeline
+ uses: buildkite/trigger-pipeline-action at v2.0.0
+ with:
+ buildkite-token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }}
+ pipeline: "llvm-project/libcxx-ci"
+ ignore_pipeline_branch_filter: true
diff --git a/libcxx/include/libcxx_trigger b/libcxx/include/libcxx_trigger
new file mode 100644
index 000000000000000..e69de29bb2d1d64
More information about the libcxx-commits
mailing list