Skip to content

Commit 2f9b577

Browse files
committed
Add an example how to add a job to PR CI
1 parent 1cf32e0 commit 2f9b577

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/tests/ci.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,21 @@ it is merged into the main branch.
5050
You can copy one of the definitions from the `auto` section to the `pr` or `try` sections.
5151
For example, the `x86_64-msvc` job is responsible for running the 64-bit MSVC tests.
5252
You can copy it to the `pr` section to cause it to be executed after a commit is pushed to your
53-
PR.
53+
PR, like this:
54+
55+
```yaml
56+
pr:
57+
...
58+
- image: x86_64-gnu-tools
59+
<<: *job-linux-16c
60+
# this item was copied from the `auto` section
61+
# vvvvvvvvvvvvvvvvvv
62+
- image: x86_64-msvc
63+
env:
64+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
65+
SCRIPT: make ci-msvc
66+
<<: *job-windows-8c
67+
```
5468
5569
Then, you can commit the file and push to GitHub. GitHub Actions should launch the tests.
5670

0 commit comments

Comments
 (0)