perf: 限制 CI typecheck 内存占用避免 OOM
使用 CI 专用 tsconfig(关闭 sourceMap)并限制 V8 堆内存为 768MB, 防止 2GB 服务器上 tsc 被 OOM Killer 终止
This commit is contained in:
parent
0ca06df078
commit
79778424a7
@ -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
6
tsconfig.ci.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"sourceMap": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user