42 lines
1.9 KiB
Diff
42 lines
1.9 KiB
Diff
From bf7c40c4fee2e25c1409d8cb83a7a4979189b572 Mon Sep 17 00:00:00 2001
|
|
From: HenryDu8133 <813367384@qq.com>
|
|
Date: Sat, 12 Sep 2026 14:04:27 +0800
|
|
Subject: [PATCH 52/58] =?UTF-8?q?fix(ci):=20=E5=9B=9E=E6=BB=9A=20NODE=5FOP?=
|
|
=?UTF-8?q?TIONS=20=E9=9D=9E=E6=B3=95=20--gc-interval=EF=BC=8C=E8=A7=A3?=
|
|
=?UTF-8?q?=E5=86=B3=20Run#56=20=E7=AB=8B=E5=8D=B3=20exit=209?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 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 所有有效内存缓解措施
|
|
---
|
|
.gitea/workflows/deploy.yml | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
|
|
index 793a110..5f46f56 100644
|
|
--- a/.gitea/workflows/deploy.yml
|
|
+++ b/.gitea/workflows/deploy.yml
|
|
@@ -64,7 +64,7 @@ jobs:
|
|
NODE_MAJOR: "22"
|
|
NODE_VERSION_FALLBACK: "22.13.0"
|
|
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"
|
|
DISABLE_ROLLDOWN: "1"
|
|
NITRO_MINIFY: "false"
|
|
@@ -202,7 +202,7 @@ jobs:
|
|
free -h || true
|
|
sync && echo 3 > /proc/sys/vm/drop_caches 2>/dev/null || true
|
|
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_MINIFY=false
|
|
export DISABLE_ROLLDOWN=1
|
|
--
|
|
2.45.1.windows.1
|
|
|