Skip to content

Commit 1384612

Browse files
committed
🤖 Fix: Parallelize macOS builds in release workflow too
Added dist-mac-release target that runs both architectures in parallel with --publish always. Release workflow now uses this instead of two sequential steps. Now both build.yml and release.yml benefit from parallel notarization.
1 parent 405890b commit 1384612

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ jobs:
2929
AC_APIKEY_ID: ${{ secrets.AC_APIKEY_ID }}
3030
AC_APIKEY_ISSUER_ID: ${{ secrets.AC_APIKEY_ISSUER_ID }}
3131

32-
- name: Package and publish for macOS (x64)
33-
run: bun x electron-builder --mac --x64 --publish always
34-
env:
35-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
37-
- name: Package and publish for macOS (arm64)
38-
run: bun x electron-builder --mac --arm64 --publish always
32+
- name: Package and publish for macOS
33+
run: make dist-mac-release
3934
env:
4035
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4136

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ dist-mac: build ## Build macOS distributables (x64 + arm64 in parallel)
169169
wait
170170
@echo "✅ Both architectures built successfully"
171171

172+
dist-mac-release: build ## Build and publish macOS distributables (x64 + arm64 in parallel)
173+
@echo "Building and publishing macOS architectures in parallel..."
174+
@bun x electron-builder --mac --x64 --publish always & \
175+
bun x electron-builder --mac --arm64 --publish always & \
176+
wait
177+
@echo "✅ Both architectures built and published successfully"
178+
172179
dist-mac-x64: build ## Build macOS x64 distributable only
173180
@echo "Building macOS x64..."
174181
@bun x electron-builder --mac --x64 --publish never

0 commit comments

Comments
 (0)