Skip to content

Commit 82701b7

Browse files
authored
Merge pull request #722 from Kobzol/custom-try-build
Add guide on how to run a different CI job for a try build
2 parents 72219f8 + f1af5e6 commit 82701b7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/infra/docs/rustc-ci.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ same time, even if there is a normal PR in progress.
132132

133133
You can see the CI configuration for try builds [here](https://github.com/rust-lang/rust/blob/9d46c7a3e69966782e163877151c1f0cea8b630a/src/ci/github-actions/ci.yml#L728-L741).
134134

135+
If you want to perform a try build with a different configuration (e.g. try to
136+
perform a compiler build for a different architecture), you can temporarily change
137+
the `try` CI job in your PR:
138+
139+
1) Open `src/ci/github-actions/ci.yml`
140+
2) Find the CI job that you want to run (e.g. `dist-aarch64-linux`)
141+
3) Copy-paste the entry of the CI job
142+
4) Find the `try:` job in the file
143+
5) Replace the `dist-x86_64-linux` job in the matrix with the copied entry from step 3)
144+
6) Run `python3 x.py run src/tools/expand-yaml-anchors`
145+
7) Push your changes and start a try build with `@bors try`
146+
135147
[perf]: https://perf.rust-lang.org
136148
[crater]: https://github.com/rust-lang/crater
137149

0 commit comments

Comments
 (0)