From 0e965bcd7a80077900166b41f6395697334135c7 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Thu, 17 Sep 2026 21:57:57 +0200 Subject: [PATCH] ci(desktop): raise Node heap for macOS release builds Metro's jest workers OOM transforming the generated ws-outbound.aot.js validator, the last module in the web bundle. Two consecutive v0.9.0-beta.1 macOS x64 builds died at 5081/5082 modules on that file. Set max-old-space-size per runner: 8192 on the 14 GB Intel runner, 4096 on the 7 GB arm64 runner. --- .github/workflows/desktop-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index c21de2ab4e..393cbc27e2 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -102,8 +102,10 @@ jobs: include: - runner: macos-14 electron_arch: arm64 + node_heap_mb: 4096 - runner: macos-15-intel electron_arch: x64 + node_heap_mb: 8192 permissions: contents: write packages: read @@ -161,6 +163,10 @@ jobs: APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} PASEO_DESKTOP_SMOKE: "1" PASEO_DESKTOP_SMOKE_ARTIFACT_DIR: ${{ runner.temp }}/desktop-smoke + # Metro's jest workers OOM on the generated ws-outbound.aot.js validator, + # the last module in the web bundle. Node's default heap is sized from + # runner RAM, which is not enough on the Intel runner. + NODE_OPTIONS: --max-old-space-size=${{ matrix.node_heap_mb }} run: | set -euo pipefail build_args=(-- --publish never --mac --${{ matrix.electron_arch }})