Compare commits

...
Author SHA1 Message Date
zlwuandCursor df6ce133dd fix: CI web 构建堆改为 6144MB,匹配前端实际内存需求
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 14:24:30 +08:00
zlwuandCursor 8c33135f4c fix: CI web 构建堆改为 3584MB,配合测试机扩容后的 swap
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 13:21:47 +08:00
+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
# 本前端生产构建实测需约 6G+ 堆;测试机靠扩容 swap(/swap-hzdyjs)硬扛
- node --max-old-space-size=6144 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"