Compare commits

2 Commits

Author SHA1 Message Date
24561bbc88 CI: pin builds to the desktop runner
All checks were successful
Build & Release APK / build (push) Successful in 11m17s
The RN/NDK build exhausted the 8GB VPS (whole docker stack went down
2026-08-08); marcusDesktop (32 threads) now handles these, and jobs
queue while it is offline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 18:38:10 -07:00
0ed7ec0624 Config plugin: parallel Gradle with all cores + build cache
Clean arm64 release rebuild drops ~2m40s -> ~1m on 32 threads.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 17:57:51 -07:00
2 changed files with 14 additions and 1 deletions

View File

@@ -6,7 +6,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
# RN/NDK builds need ~6GB and once took down the 8GB VPS — desktop runner only.
# Jobs queue while the desktop is offline.
runs-on: desktop
container:
image: eclipse-temurin:21-jdk
steps:

View File

@@ -40,6 +40,17 @@ module.exports = function withReleaseSigning(config) {
if (jdk && !cfg.modResults.some((p) => p.key === 'org.gradle.java.home')) {
cfg.modResults.push({ type: 'property', key: 'org.gradle.java.home', value: jdk });
}
/* use every core: parallel module builds + build cache */
const set = (key, value) => {
const hit = cfg.modResults.find((p) => p.key === key);
if (hit) hit.value = value;
else cfg.modResults.push({ type: 'property', key, value });
};
set('org.gradle.parallel', 'true');
set('org.gradle.caching', 'true');
set('org.gradle.configuration-cache', 'false');
set('org.gradle.workers.max', String(os.cpus().length));
set('org.gradle.jvmargs', '-Xmx6g -XX:MaxMetaspaceSize=1g');
return cfg;
});
return withAppBuildGradle(config, (cfg) => {