Skip to content

Commit b5fc914

Browse files
committed
feat: enhance release workflow with fail-fast strategy and increased memory allocation for builds
1 parent 6b3e8c6 commit b5fc914

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717

1818
strategy:
19+
# One platform's failure shouldn't cancel the other two — a macOS OOM
20+
# took the Linux and Windows builds down with it on v0.11.0, so the run
21+
# reported nothing about whether they would have succeeded.
22+
fail-fast: false
1923
matrix:
2024
os: [macos-latest, ubuntu-latest, windows-latest]
2125

@@ -50,6 +54,13 @@ jobs:
5054
- name: Build and Release
5155
uses: samuelmeuli/action-electron-builder@v1
5256
env:
57+
# Vite's sourcemap generation is the memory ceiling on this build: the
58+
# main chunk is ~3.2MB and its map ~12.5MB, and producing that lot
59+
# peaks around 2.8GB RSS. The macOS arm64 runner has 7GB, so Node 20
60+
# sizes its old-space heap at roughly 2GB by default — which v0.10.2
61+
# fit under and v0.11.0 does not. Raise it rather than shrink the
62+
# build, so releases don't fail on the next few hundred KB either.
63+
NODE_OPTIONS: --max-old-space-size=4096
5364
# Apple Notarization
5465
APPLE_ID: ${{ secrets.APPLE_ID }}
5566
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}

0 commit comments

Comments
 (0)