fix(ci): 回滚 NODE_OPTIONS 非法 --gc-interval,解决 Run#56 立即 exit 9
- Node.js NODE_OPTIONS 不允许传 --gc-interval,导致 Run 56 刚启动 Node v0 检测时就 exit code 9 全局失败 - 保留 max-old-space-size=10240、expose-gc、drop_caches、DISABLE_ROLLDOWN=1、NITRO_MINIFY=false 所有有效内存缓解措施
This commit is contained in:
@@ -64,7 +64,7 @@ jobs:
|
|||||||
NODE_MAJOR: "22"
|
NODE_MAJOR: "22"
|
||||||
NODE_VERSION_FALLBACK: "22.13.0"
|
NODE_VERSION_FALLBACK: "22.13.0"
|
||||||
NODE_MIRROR_PRIMARY: "https://registry.npmmirror.com/-/binary/node"
|
NODE_MIRROR_PRIMARY: "https://registry.npmmirror.com/-/binary/node"
|
||||||
NODE_OPTIONS: "--max-old-space-size=10240 --no-warnings --expose-gc --gc-interval=100000"
|
NODE_OPTIONS: "--max-old-space-size=10240 --no-warnings --expose-gc"
|
||||||
NITRO_PRESET: "node-server"
|
NITRO_PRESET: "node-server"
|
||||||
DISABLE_ROLLDOWN: "1"
|
DISABLE_ROLLDOWN: "1"
|
||||||
NITRO_MINIFY: "false"
|
NITRO_MINIFY: "false"
|
||||||
@@ -202,7 +202,7 @@ jobs:
|
|||||||
free -h || true
|
free -h || true
|
||||||
sync && echo 3 > /proc/sys/vm/drop_caches 2>/dev/null || true
|
sync && echo 3 > /proc/sys/vm/drop_caches 2>/dev/null || true
|
||||||
echo "=== 开始执行 nuxt build ==="
|
echo "=== 开始执行 nuxt build ==="
|
||||||
export NODE_OPTIONS="--max-old-space-size=10240 --no-warnings --expose-gc --gc-interval=100000"
|
export NODE_OPTIONS="--max-old-space-size=10240 --no-warnings --expose-gc"
|
||||||
export NITRO_PRESET=node-server
|
export NITRO_PRESET=node-server
|
||||||
export NITRO_MINIFY=false
|
export NITRO_MINIFY=false
|
||||||
export DISABLE_ROLLDOWN=1
|
export DISABLE_ROLLDOWN=1
|
||||||
|
|||||||
Reference in New Issue
Block a user