From 2f9b577171396f00259f6e9ce9ca64c86995a580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Thu, 2 May 2024 21:21:54 +0200 Subject: [PATCH] Add an example how to add a job to PR CI --- src/tests/ci.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/tests/ci.md b/src/tests/ci.md index 2babde58..bf091ca7 100644 --- a/src/tests/ci.md +++ b/src/tests/ci.md @@ -50,7 +50,21 @@ it is merged into the main branch. You can copy one of the definitions from the `auto` section to the `pr` or `try` sections. For example, the `x86_64-msvc` job is responsible for running the 64-bit MSVC tests. You can copy it to the `pr` section to cause it to be executed after a commit is pushed to your -PR. +PR, like this: + +```yaml +pr: + ... + - image: x86_64-gnu-tools + <<: *job-linux-16c + # this item was copied from the `auto` section + # vvvvvvvvvvvvvvvvvv + - image: x86_64-msvc + env: + RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler + SCRIPT: make ci-msvc + <<: *job-windows-8c +``` Then, you can commit the file and push to GitHub. GitHub Actions should launch the tests.