From a2fe79e2fe6604e8ac49b59a82e417090bf982be Mon Sep 17 00:00:00 2001 From: Ron Borysowski Date: Thu, 7 May 2026 21:42:25 +0300 Subject: [PATCH] fix(release): raise Node heap to avoid macOS build OOM The v0.11.2 release run (25514990847) failed on macos-latest with "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" while electron-vite was bundling the renderer. The Monaco editor chunk (~6 MB) plus Vite 7's larger in-memory graph push past Node's default 2 GB limit on the macOS runner. Set NODE_OPTIONS=--max-old-space-size=8192 at the job level so all three platforms run with the same heap cap. 8 GB is comfortably under the macos-latest runner's 14 GB and matches what other Electron/Monaco projects use. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6e344f..2f370b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,15 @@ jobs: name: Build ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 40 + env: + # `electron-vite build` peaks well above Node's default 2 GB heap + # because of the Monaco editor chunk (~6 MB) plus Vite 7's larger + # in-memory graph. Raising the limit globally for the build job + # keeps macOS / Linux / Windows on the same configuration and + # avoids "Allocation failed - JavaScript heap out of memory" OOMs + # on macos-latest (which exits 134 mid-build, see release run + # 25514990847). + NODE_OPTIONS: --max-old-space-size=8192 strategy: fail-fast: false matrix: