Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

ci(macos): give tsc enough heap for bun run verify on the macOS 26 runner (#5810)

garrytan556eacfb160f
diff --git a/.github/workflows/macos-validation.yml b/.github/workflows/macos-validation.yml
index bb224866cf..bb1b38498c 100644
--- a/.github/workflows/macos-validation.yml
+++ b/.github/workflows/macos-validation.yml
@@ -90,7 +90,11 @@ jobs:
env:
GBRAIN_BASH32: /bin/bash
GBRAIN_BASH32_REQUIRE: '1'
+ # tsc peaks near 3 GB of heap on this repo; Node's default limit on
+ # the 7 GB runner is lower, so typecheck aborted on heap exhaustion.
+ NODE_OPTIONS: --max-old-space-size=4096
run: |
+ NODE_OPTIONS= node -p '"default node heap limit MB " + require("v8").getHeapStatistics().heap_size_limit / 1048576'
mkdir -p "$RUNNER_TEMP/bash32"
ln -sf /bin/bash "$RUNNER_TEMP/bash32/bash"
export PATH="$RUNNER_TEMP/bash32:$PATH"