Skip to content

Commit

Permalink
Auto merge of #123451 - Kobzol:arbitrary-try-build, r=pietroalbini
Browse files Browse the repository at this point in the history
CI: add a script for dynamically computing CI job matrix

It would be great if was easier to run specific CI workflows locally, and also to allow us to spawn a specific CI workflow by bors, to enable running arbitrary try builds. See discussion [here](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/CI.20workflows.20refactoring).

This PR is a first step in that direction.
- Moves the definition of CI runners and (for now) PR jobs into a separate `jobs.yml` file.
- Adds a simple Python script that reads the file, decides which jobs should be active for the current CI workflow, and prints them as JSON to their output.
- The PR job then reads this output and generates its job matrix based on it.

By moving the job definitions from `ci.yml` into a separate file, we can handle it programmatically, which should make it easier to both do local execution of CI jobs and also to do arbitrary try builds.
  • Loading branch information
bors committed Apr 15, 2024
2 parents 5c82a30 + 80a0a72 commit 97009d2
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 97009d2

Please sign in to comment.