Commit 358b38a
authored
CI: Build examples in parallel on pull requests (#782)
The `build-examples` job built all examples sequentially in a single job,
taking ~57 minutes - each example is its own SwiftPM package that recompiles
JavaScriptKit and swift-syntax from scratch, with no sharing between them.
Split the job by event:
- Pull requests fan out a matrix `build-examples` with one job per example,
built in parallel. Wall-clock drops to that of the slowest single example
(~10 min). Each example now reports as a separate `build-examples (<name>)`
check, so the required status checks need updating (see PR description).
- `main` keeps the full release build of all examples plus the GitHub Pages
deploy (`build-examples-deploy`), so published artifacts are unchanged.
Examples are built in release to match the deploy path, keeping the only
behavioral change the parallelism. Each matrix step runs `build.sh` from the
example directory (via `working-directory`), mirroring
Utilities/build-examples.sh.1 parent 210689e commit 358b38a
1 file changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
158 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
159 | 196 | | |
160 | 197 | | |
161 | 198 | | |
| |||
184 | 221 | | |
185 | 222 | | |
186 | 223 | | |
187 | | - | |
| 224 | + | |
188 | 225 | | |
189 | 226 | | |
190 | 227 | | |
| |||
0 commit comments