Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / utils / ci / buildkite-pipeline.yml
blob7a679176038c693b5a3c5e6a7daad0795c9193b6
1 #===----------------------------------------------------------------------===##
3 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 # See https://llvm.org/LICENSE.txt for license information.
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 #===----------------------------------------------------------------------===##
10 # This file describes the various pre-commit CI bots used to test Clang against
11 # libc++ under various configurations. Unlike the usual libc++ CI pipeline,
12 # which aims to test libc++ itself, this pipeline aims to test Clang by
13 # compiling libc++ and running its test suite against the just-built Clang,
14 # in various configurations.
16 env:
17     # LLVM RELEASE bump version
18     LLVM_HEAD_VERSION: "17"
19 steps:
20   - label: "Format"
21     commands:
22       - "clang/utils/ci/run-buildbot check-format"
23     agents:
24       queue: "linux"
25     retry:
26       automatic:
27         - exit_status: -1  # Agent was lost
28           limit: 2
29     timeout_in_minutes: 120
31   - label: "Building and testing clang (Linux)"
32     commands:
33       - "clang/utils/ci/run-buildbot build-clang"
34     agents:
35       queue: "linux"
36     retry:
37       automatic:
38         - exit_status: -1  # Agent was lost
39           limit: 2
40     timeout_in_minutes: 120
42   - label: "Building and testing clang (Windows)"
43     commands:
44       - "C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64"
45       - "bash clang/utils/ci/run-buildbot build-clang-windows"
46     agents:
47       queue: "windows"
48     retry:
49       automatic:
50         - exit_status: -1  # Agent was lost
51           limit: 2
52     timeout_in_minutes: 120
54   - wait
56   - label: "Running libc++ test suite in C++03"
57     commands:
58       - "clang/utils/ci/run-buildbot generic-cxx03"
59     artifact_paths:
60       - "**/test-results.xml"
61       - "**/crash_diagnostics/*"
62     env:
63         LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-${LLVM_HEAD_VERSION}" # TODO: Should we build that from scratch?
64         CLANG_CRASH_DIAGNOSTICS_DIR: "crash_diagnostics"
65     agents:
66       queue: "linux"
67     retry:
68       automatic:
69         - exit_status: -1  # Agent was lost
70           limit: 2
71     timeout_in_minutes: 120
73   - label: "Running libc++ test suite in C++26"
74     commands:
75       - "clang/utils/ci/run-buildbot generic-cxx26"
76     artifact_paths:
77       - "**/test-results.xml"
78       - "**/crash_diagnostics/*"
79     env:
80         LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-${LLVM_HEAD_VERSION}" # TODO: Should we build that from scratch?
81         CLANG_CRASH_DIAGNOSTICS_DIR: "crash_diagnostics"
82     agents:
83       queue: "linux"
84     retry:
85       automatic:
86         - exit_status: -1  # Agent was lost
87           limit: 2
88     timeout_in_minutes: 120
90   - label: "Running libc++ test suite with Clang Modules"
91     commands:
92       - "clang/utils/ci/run-buildbot generic-modules"
93     artifact_paths:
94       - "**/test-results.xml"
95       - "**/crash_diagnostics/*"
96     env:
97         LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-${LLVM_HEAD_VERSION}" # TODO: Should we build that from scratch?
98         CLANG_CRASH_DIAGNOSTICS_DIR: "crash_diagnostics"
99     agents:
100       queue: "linux"
101     retry:
102       automatic:
103         - exit_status: -1  # Agent was lost
104           limit: 2
105     timeout_in_minutes: 120