Commit ee1688e
committed
CI: Build examples in parallel on pull requests
The `build-examples` job built all examples sequentially in release mode 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 run a matrix with one job per example, built in `debug`,
purely to catch breakage. Parallelism collapses the wall-clock time, and
debug skips the wasm optimization cost that PRs don't need.
- `main` keeps the full release build of all examples plus the GitHub Pages
deploy (`build-examples-deploy`), so published artifacts are unchanged.
No caching is introduced here; that can be layered on later once its
cross-run reliability is verified.1 parent ebbde04 commit ee1688e
1 file changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
158 | 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 | + | |
159 | 192 | | |
160 | 193 | | |
161 | 194 | | |
| |||
184 | 217 | | |
185 | 218 | | |
186 | 219 | | |
187 | | - | |
| 220 | + | |
188 | 221 | | |
189 | 222 | | |
190 | 223 | | |
| |||
0 commit comments