fix: CI web 构建堆改为 6144MB,匹配前端实际内存需求
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8c33135f4c
commit
df6ce133dd
1 file changed
+2
-2
+2
-2
@@ -46,8 +46,8 @@ steps:
|
||||
- mkdir -p "/hzdyjs-releases/${DRONE_TAG}"
|
||||
- cd web
|
||||
- npm install --legacy-peer-deps --no-audit --no-fund
|
||||
# 测试机物理内存约 3.6G;配合加大后的 swap,堆设 3584 避免 OOM 又不过分挤爆
|
||||
- node --max-old-space-size=3584 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"
|
||||
|
||||
Reference in new issue
Block a user