Commit 315eb2b
committed
fix(btm-builder-image): drop job-level if:matrix expression (GHA can't evaluate it)
GHA evaluates job-level `if:` BEFORE matrix expansion, so `matrix.arch`
isn't bound — the dispatch fails with HTTP 422:
Unrecognized named-value: 'matrix'
Located at: github.event_name == 'schedule' || contains(inputs.platforms, format('linux/{0}', matrix.arch))
Two ways to fix: dynamic-matrix via a setup job that emits the
platform list (heavier), or just always build both arches (cheap).
Picking the cheap one. The cost of an extra runner spin-up when
only one arch was requested is ~30s; the filtering complexity
isn't worth it.
`inputs.platforms` is retained for documentation but no longer
gates which jobs run.1 parent 4047bf2 commit 315eb2b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
56 | | - | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
0 commit comments