On 5/6/2026 13:42, Joshua Root wrote:
On 4/6/2026 15:43, Paul Guyot wrote:
Main issue (to my eyes) is that the number of steps is fixed.
I've seen some info that suggests that a matrix can be dynamically
generated from the output of a step. I'll try to prototype that if you
don't beat me to it.
So far I have this:
<https://github.com/jmroot/macports-ports/commit/1b0a2ff5f0bfef5cb262cf43c8fb34bedc061926>
<https://github.com/jmroot/macports-ports/actions/runs/27090489116>
While this technically works, it is not very efficient since each port
is built in a separate job which starts from scratch. If some of the
changed ports depend on others, the dependencies will get built multiple
times, once in their own build and once in each build of a port that
depends on them.
The jobs also don't appear to run in the order the ports are listed. For
this to be viable, I think we would have to (1) cache and restore built
ports as needed, and (2) ensure that builds happen in dependency order.
- Josh