perf: 限制 CI typecheck 内存占用避免 OOM
Some checks failed
CI/CD Pipeline / Code Quality (push) Failing after 18s
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Build & Deploy Test (push) Has been skipped
CI/CD Pipeline / Build & Deploy Production (push) Has been skipped

使用 CI 专用 tsconfig(关闭 sourceMap)并限制 V8 堆内存为 768MB,
防止 2GB 服务器上 tsc 被 OOM Killer 终止
This commit is contained in:
Wang Zhuoxuan 2026-06-01 12:06:02 +08:00
parent 0ca06df078
commit 79778424a7
2 changed files with 7 additions and 1 deletions

View File

@ -29,7 +29,7 @@ jobs:
run: bun install --frozen-lockfile run: bun install --frozen-lockfile
- name: Type check - name: Type check
run: bun run typecheck run: NODE_OPTIONS="--max-old-space-size=768" bunx tsc --noEmit -p tsconfig.ci.json
# ==================== 运行测试 ==================== # ==================== 运行测试 ====================
test: test:

6
tsconfig.ci.json Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": false
}
}