diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-04-19 21:41:49 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-04-20 09:06:04 +0200 |
| commit | 9fec43ddf12118f6bfa66aedb17bca91618f153b (patch) | |
| tree | 5d47291fa6d92ef68bce7fc802d7a6e8494f9e0c /src/ci/scripts | |
| parent | 9c7b1f4848263b7a39486a2cd482db0d632884e8 (diff) | |
| download | rust-9fec43ddf12118f6bfa66aedb17bca91618f153b.tar.gz rust-9fec43ddf12118f6bfa66aedb17bca91618f153b.zip | |
Move calculate-job-matrix.py to `ci/github-actions`
Diffstat (limited to 'src/ci/scripts')
| -rwxr-xr-x | src/ci/scripts/calculate-job-matrix.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/ci/scripts/calculate-job-matrix.py b/src/ci/scripts/calculate-job-matrix.py deleted file mode 100755 index 9b1e74c23c3..00000000000 --- a/src/ci/scripts/calculate-job-matrix.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python3 - -""" -This script serves for generating a matrix of jobs that should -be executed on CI. - -It reads job definitions from `src/ci/github-actions/jobs.yml` -and filters them based on the event that happened on CI. - -Currently, it only supports PR builds. -""" - -import json -from pathlib import Path - -import yaml - -JOBS_YAML_PATH = Path(__file__).absolute().parent.parent / "github-actions" / "jobs.yml" - - -if __name__ == "__main__": - with open(JOBS_YAML_PATH) as f: - jobs = yaml.safe_load(f) - job_output = jobs["pr"] - print(f"jobs={json.dumps(job_output)}") |
