perf(ci): reduce build memory and CPU allocations
Some checks failed
Frontend CI / ota (ios) (push) Successful in 1m30s
Frontend CI / ota (android) (push) Successful in 1m49s
Frontend CI / build-and-push-web (push) Successful in 2m47s
Frontend CI / build-android-apk (push) Failing after 14m11s

Scale down memory limits and parallelization settings across CI build pipeline. Reduce heap from 8g to 4g, metaspace from 1g to 512m, worker count from 4 to 2, and CMAKE build parallel level from 8 to 4. Remove Gradle caching and update web export to use explicit NODE_OPTIONS for memory allocation. These optimizations reduce resource usage while maintaining stable builds.
This commit is contained in:
lafay
2026-06-16 09:07:56 +08:00
parent c46260e4c0
commit c06463f576
3 changed files with 10 additions and 22 deletions

View File

@@ -2,7 +2,7 @@ const { withDangerousMod } = require('@expo/config-plugins');
const fs = require('fs');
const path = require('path');
const MAX_JOBS = '8';
const MAX_JOBS = '4';
// React Native's hermes-engine build hardcodes
// Runtime.getRuntime().availableProcessors()