Commit 07f5509
committed
CI: Build examples in parallel on pull requests
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-example` with one job per example.
Parallelism collapses the wall-clock time to that of the slowest single
example (~10 min). An aggregate `build-examples` job gates on the matrix so
the existing required status check of that name keeps working.
- `main` keeps the full release build of all examples plus the GitHub Pages
deploy (`build-examples-deploy`), so published artifacts are unchanged.
Examples are still built in release: building them in debug currently fails
because the host `BridgeJSTool` plugin gets compiled against the wasm SDK
(no `Dispatch`), a pre-existing issue that only surfaces in debug. No caching
is introduced here.1 parent ebbde04 commit 07f5509
1 file changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 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 | + | |
158 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
159 | 202 | | |
160 | 203 | | |
161 | 204 | | |
| |||
184 | 227 | | |
185 | 228 | | |
186 | 229 | | |
187 | | - | |
| 230 | + | |
188 | 231 | | |
189 | 232 | | |
190 | 233 | | |
| |||
0 commit comments