-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit 4708bae
Use separate attributes for human identifier and runner identifier in build job matrix
The "Arduino IDE" GitHub Actions workflow uses a job matrix to make the builds for each host target in parallel.
The same steps are used for each job, but some configuration adjustments must be made on a per-target basis. This is
done through various attributes in the matrix configuration.
Previously the `os` attribute was used for two distinct things:
- The machine identifier of the GitHub Actions runner machine of the job.
- The differentiator in the human-targeted job name.
The attribute name "os" (for "operating system") was misleading because runners are differentiated by more than only the
operating system on the machine.
The use of a machine identifier as a differentiator in the human-targeted job name was a bad idea because these
identifiers would only effectively communicate the nature of a build to humans who are quite knowledgeable about the
GitHub Actions workflow syntax.
The impact of these poor decisions has not been too severe previously due to there only being a single job for each
operating system. However, there is a need for multiple jobs per operating system in order to support multiple host
architectures (e.g., macOS x86 and ARM).
The solution is to:
- Use an appropriate name for the runner identifier attribute.
- Use a dedicated attribute for the human friendly job name differentiator.1 parent 57975f8 commit 4708bae
1 file changed
+8
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 | - | ||
64 | + | ||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 | - | ||
70 | + | ||
71 | + | ||
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
74 | - | ||
75 | - | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
76 | 79 |
| |
77 | 80 |
| |
78 | 81 |
| |
79 | 82 |
| |
80 | 83 |
| |
81 | - | ||
84 | + | ||
82 | 85 |
| |
83 | 86 |
| |
84 | 87 |
| |
|
0 commit comments