Commit a196057
committed
perf(ci): implement critical workflow optimizations
CRITICAL FIXES:
1. Fix ONNX build cache never reusing (removed github.run_id from key)
- Saves 30-60 minutes on ONNX rebuilds
- Cache key was unique per run, preventing any reuse
2. Add version to models cache key
- Ensures cache invalidation on version bumps
- Matches pattern used for Yoga and ONNX Runtime
3. Version Emscripten SDK cache (pin to 3.1.69)
- Prevents breaking changes from affecting builds
- Enables reproducible builds across runs
4. Add platform enforcement to build-smol.yml
- Implements checkbox toggles for Linux/macOS/Windows
- Uses step-level conditionals with platform check
- Matches pattern from build-sea.yml
5. Add platform enforcement to publish-socketbin.yml
- Implements checkbox toggles for platform selection
- Reduces runner time when selective builds needed
- Consistent with other workflows
IMPACT:
- Estimated 50% reduction in build times (cache hits)
- Estimated 50% reduction in runner costs
- Full customizability across all workflows
- Reproducible builds with pinned dependencies
See .claude/workflow-optimization-analysis.md for full analysis.1 parent 96137f3 commit a196057
File tree
4 files changed
+69
-4
lines changed- .github/workflows
4 files changed
+69
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 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 | + | |
165 | 190 | | |
| 191 | + | |
166 | 192 | | |
167 | 193 | | |
168 | 194 | | |
| 195 | + | |
169 | 196 | | |
170 | 197 | | |
171 | 198 | | |
172 | 199 | | |
173 | 200 | | |
174 | 201 | | |
| 202 | + | |
175 | 203 | | |
176 | 204 | | |
177 | 205 | | |
| |||
183 | 211 | | |
184 | 212 | | |
185 | 213 | | |
| 214 | + | |
186 | 215 | | |
187 | 216 | | |
188 | 217 | | |
189 | 218 | | |
190 | 219 | | |
| 220 | + | |
191 | 221 | | |
192 | 222 | | |
193 | 223 | | |
194 | 224 | | |
195 | 225 | | |
| 226 | + | |
196 | 227 | | |
197 | 228 | | |
198 | 229 | | |
| 230 | + | |
199 | 231 | | |
200 | 232 | | |
201 | 233 | | |
| |||
240 | 272 | | |
241 | 273 | | |
242 | 274 | | |
| 275 | + | |
243 | 276 | | |
244 | 277 | | |
245 | 278 | | |
| |||
334 | 367 | | |
335 | 368 | | |
336 | 369 | | |
| 370 | + | |
337 | 371 | | |
338 | 372 | | |
339 | 373 | | |
| |||
352 | 386 | | |
353 | 387 | | |
354 | 388 | | |
| 389 | + | |
355 | 390 | | |
356 | 391 | | |
357 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
| |||
352 | 357 | | |
353 | 358 | | |
354 | 359 | | |
355 | | - | |
| 360 | + | |
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| |||
391 | 396 | | |
392 | 397 | | |
393 | 398 | | |
394 | | - | |
| 399 | + | |
395 | 400 | | |
396 | 401 | | |
397 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
89 | 114 | | |
90 | 115 | | |
91 | 116 | | |
| |||
0 commit comments