mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 08:03:15 +00:00
fix(ci): raise Node heap for the SPA build (vite OOM'd at ~2 GB) (#19)
The build-artifacts SPA build hit Node's default ~2 GB heap cap and aborted (JS heap OOM, exit 134) — the same memory-hungry vite build that needed an 8 GB swapfile on-box. The runner has ~16 GB, so set NODE_OPTIONS=--max-old-space-size=8192 on both build steps.
This commit is contained in:
parent
404b3f6f75
commit
2765b65acd
1 changed files with 8 additions and 0 deletions
8
.github/workflows/build-artifacts.yml
vendored
8
.github/workflows/build-artifacts.yml
vendored
|
|
@ -67,6 +67,10 @@ jobs:
|
|||
bun-version: latest
|
||||
- name: Build SPA (vite -> ui/.output/public)
|
||||
working-directory: ui
|
||||
# vite's bundle exceeds Node's default ~2 GB heap (the build that needed an
|
||||
# 8 GB swapfile on-box); the runner has ~16 GB, so lift the heap cap.
|
||||
env:
|
||||
NODE_OPTIONS: "--max-old-space-size=8192"
|
||||
run: |
|
||||
bun install --frozen-lockfile
|
||||
bun run build
|
||||
|
|
@ -101,6 +105,10 @@ jobs:
|
|||
bun-version: latest
|
||||
- name: Build SPA (vite -> ui/.output/public)
|
||||
working-directory: ui
|
||||
# vite's bundle exceeds Node's default ~2 GB heap (the build that needed an
|
||||
# 8 GB swapfile on-box); the runner has ~16 GB, so lift the heap cap.
|
||||
env:
|
||||
NODE_OPTIONS: "--max-old-space-size=8192"
|
||||
run: |
|
||||
bun install --frozen-lockfile
|
||||
bun run build
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue