Commit d6e913e
Implement Trigger-Specific Build Matrix Defaults (#143)
* feat: implement trigger-specific build matrix defaults
The `generate-build-matrix` action now uses intelligent, trigger-specific defaults for build configurations.
- Workflows triggered by `push`, `pull_request`, and `pull_request_target` now default to a minimal `gcc/none` configuration.
- Workflows triggered by an `issue_comment` default to `gcc/none` and `clang/none`.
- Manual `workflow_dispatch` triggers default to running all available build combinations.
The user input handling has also been improved to follow a clear precedence:
1. An explicit list of builds (e.g., `gcc/asan`) overrides all defaults.
2. A modified list (e.g., `+gcc/tsan`, `all -clang/none`) alters the trigger-specific default set.
3. No input uses the trigger-specific default directly.
* Committing Python linting fixes
* fix: address ruff and mypy issues
This commit addresses the Python linting and type-checking issues reported by `ruff` and `mypy`.
- Added module and function docstrings.
- Corrected import order.
- Removed an unnecessary `list()` call.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 3887bbb commit d6e913e
10 files changed
Lines changed: 216 additions & 166 deletions
File tree
- .github/actions/generate-build-matrix
- scripts
- test/python
Lines changed: 54 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
5 | 20 | | |
| 21 | + | |
6 | 22 | | |
7 | | - | |
8 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
9 | 31 | | |
10 | | - | |
11 | | - | |
12 | 32 | | |
13 | 33 | | |
14 | 34 | | |
15 | 35 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
20 | 40 | | |
21 | 41 | | |
22 | | - | |
| 42 | + | |
23 | 43 | | |
24 | 44 | | |
25 | 45 | | |
26 | 46 | | |
27 | | - | |
| 47 | + | |
| 48 | + | |
28 | 49 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
33 | 54 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
40 | 58 | | |
41 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
42 | 73 | | |
43 | 74 | | |
44 | | - | |
| 75 | + | |
45 | 76 | | |
46 | 77 | | |
47 | 78 | | |
48 | 79 | | |
49 | 80 | | |
50 | 81 | | |
51 | 82 | | |
| 83 | + | |
52 | 84 | | |
53 | 85 | | |
0 commit comments