Skip to content

Commit d230625

Browse files
committed
WIP: Experiment with improving the buildkite triggering
1 parent c492a22 commit d230625

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.ci/generate-buildkite-pipeline-premerge

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,6 @@ echo "$modified_dirs" >&2
5454

5555
. ./.ci/compute-projects.sh
5656

57-
# Project specific pipelines.
58-
59-
# If libc++ or one of the runtimes directories changed.
60-
if echo "$modified_dirs" | grep -q -E "^(libcxx|libcxxabi|libunwind|runtimes|cmake)$"; then
61-
cat <<EOF
62-
- trigger: "libcxx-ci"
63-
build:
64-
message: "${buildMessage}"
65-
commit: "${BUILDKITE_COMMIT}"
66-
branch: "${BUILDKITE_BRANCH}"
67-
EOF
68-
fi
69-
70-
# Generic pipeline for projects that have not defined custom steps.
71-
#
72-
# Individual projects should instead define the pre-commit CI tests that suits their
73-
# needs while letting them run on the infrastructure provided by LLVM.
74-
7557
# Figure out which projects need to be built on each platform
7658
all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl"
7759
modified_projects="$(keep-modified-projects ${all_projects})"

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,20 @@ jobs:
275275
- name: Build and test
276276
run: |
277277
bash libcxx/utils/ci/run-buildbot ${{ matrix.config }}
278+
279+
# Some smaller platforms provide
280+
buildkite:
281+
# needs: [ stage1 ]
282+
steps:
283+
- uses: "buildkite/[email protected]"
284+
with:
285+
buildkite_api_access_token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }}
286+
pipeline: "llvm-project/libcxx-ci"
287+
branch: "main"
288+
commit: "HEAD"
289+
message: ":github: Triggered from a GitHub Action"
290+
ignore_pipeline_branch_filter: true
291+
send_pull_request: true
292+
wait: true
293+
wait_interval: 10
294+
wait_timeout: 300

0 commit comments

Comments
 (0)