Skip to content

Commit 9f601c0

Browse files
casaoutclaude
andcommitted
fix: fix CI build failures due to OOM and broken macOS condition
- Increase Node.js heap to 4 GB via NODE_OPTIONS to prevent OOM during vite build - Fix macOS runner condition using mac_arch check instead of broken glob comparison with [ ] Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4581407 commit 9f601c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build
3636
shell: bash
3737
run: |
38-
if [ "${{ matrix.os }}" == "macos-*" ]; then
38+
if [ -n "${{ matrix.mac_arch }}" ]; then
3939
if [ "${{ matrix.mac_arch }}" == "arm64" ]; then
4040
npm run build:mac:arm64
4141
else
@@ -45,6 +45,7 @@ jobs:
4545
npm run build
4646
fi
4747
env:
48+
NODE_OPTIONS: --max-old-space-size=4096
4849
MAC_ARCH_TYPE: ${{ matrix.mac_arch == 'arm64' && 'AppleSilicon' || 'Intel' }}
4950
APPLE_ID: ${{ secrets.APPLE_ID }}
5051
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}

0 commit comments

Comments
 (0)