You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Problem
Build macOS job takes 4-13 minutes, with:
- Sequential notarization (x64 then arm64): ~7-10 min
- ImageMagick install from scratch: ~55s every run
## Solution
### 1. Parallelize Architecture Builds
Updated `Makefile` to build x64 and arm64 in parallel via `make -j2`:
- Notarization now happens concurrently instead of sequentially
- electron-builder is safe to run in parallel (separate output dirs,
caches)
### 2. Use Depot macOS Runners
Switch to `depot-macos-15` runners:
- 30% faster compute
- 10x faster caching (1000 MiB/s vs 125 MB/s)
- Built-in cache acceleration for `actions/cache`
### 3. Cache Homebrew in setup-cmux
Moved ImageMagick install + caching to `setup-cmux` action:
- Centralized for all workflows
- Uses Depot's 10x faster cache
- Install time: 55s → 2s (cache hit)
### 4. Remove Hardcoded Architecture Targets
Removed `mac.target` array from `package.json`:
- Allows Makefile to control architecture via CLI args
- Enables parallel builds with `--x64` and `--arm64`
## Impact
**Before:** 10-13 minutes
**After:** 4-5 minutes
**Speedup:** ~50-60% faster
Timeline:
- Build once: ~30s
- Package x64 + arm64 in parallel: ~4 min (limited by slower of the two)
## Testing
First build will be cache miss (55s for ImageMagick). Subsequent builds
will be ~2s.
_Generated with `cmux`_
0 commit comments