fix: CI web 构建堆改为 3584MB,配合测试机扩容后的 swap

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-24 13:21:47 +08:00
1 parent f067c95d93
commit 8c33135f4c
1 file changed
+2 -2
+2 -2
View File
@@ -46,8 +46,8 @@ steps:
- mkdir -p "/hzdyjs-releases/${DRONE_TAG}"
- cd web
- npm install --legacy-peer-deps --no-audit --no-fund
# 测试机约 3.6G 内存,勿用 package.json 里 6~8G 的 max-old-space-size
- node --max-old-space-size=2048 node_modules/vite/bin/vite.js build --mode production
# 测试机物理内存约 3.6G;配合加大后的 swap,堆设 3584 避免 OOM 又不过分挤爆
- node --max-old-space-size=3584 node_modules/vite/bin/vite.js build --mode production
- test -f dist/index.html
- tar -C dist -czf "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz" .
- ls -lh "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz"