Compare commits
2 Commits
08b9579839
...
24561bbc88
| Author | SHA1 | Date | |
|---|---|---|---|
| 24561bbc88 | |||
| 0ed7ec0624 |
@@ -6,7 +6,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
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:
|
container:
|
||||||
image: eclipse-temurin:21-jdk
|
image: eclipse-temurin:21-jdk
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -40,6 +40,17 @@ module.exports = function withReleaseSigning(config) {
|
|||||||
if (jdk && !cfg.modResults.some((p) => p.key === 'org.gradle.java.home')) {
|
if (jdk && !cfg.modResults.some((p) => p.key === 'org.gradle.java.home')) {
|
||||||
cfg.modResults.push({ type: 'property', key: 'org.gradle.java.home', value: jdk });
|
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 cfg;
|
||||||
});
|
});
|
||||||
return withAppBuildGradle(config, (cfg) => {
|
return withAppBuildGradle(config, (cfg) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user