Compare commits

..
Author SHA1 Message Date
zlwuandCursor 8c33135f4c fix: CI web 构建堆改为 3584MB,配合测试机扩容后的 swap
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 13:21:47 +08:00
zlwuandCursor f067c95d93 fix: CI web 构建改用 2G 堆内存,适配测试机小内存
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 13:10:08 +08:00
+2 -1
View File
@@ -46,7 +46,8 @@ steps:
- mkdir -p "/hzdyjs-releases/${DRONE_TAG}"
- cd web
- npm install --legacy-peer-deps --no-audit --no-fund
- npm run build:prod
# 测试机物理内存约 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"