Commit 8125b40
authored
🤖 ci: parallelize macOS PR builds by skipping signing setup (#834)
## Summary
Two optimizations to speed up macOS CI builds for pull requests:
1. **Skip signing setup for PRs** - electron-builder skips code signing
for PRs anyway, but the Makefile was forcing sequential builds when
`CSC_LINK` was set. Now we skip the signing setup step entirely for PRs,
allowing parallel x64/arm64 builds.
2. **Skip bun cache restore on node_modules hit** - The bun install
cache (~470MB, ~104k files) only benefits `bun install` runs. When
node_modules cache hits, we skip install entirely, so restoring the bun
cache was wasting ~37s extracting unused files.
## Results
| Step | Before | After | Saved |
|------|--------|-------|-------|
| setup-mux | 61s | 24s | **37s** |
| Package for macOS | 331s | 168s | **163s** |
| **Total** | **392s** | **192s** | **200s (51%)** |
---
_Generated with `mux`_1 parent b0aae84 commit 8125b40
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
43 | | - | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
0 commit comments