fix(ci): size Android heap from measured usage
Pixel 10 APK / build (push) Failing after 32m39s

This commit is contained in:
Codex
2026-08-10 07:12:29 +02:00
parent b4afa40c19
commit ac4a267d30
+7 -5
View File
@@ -168,13 +168,15 @@ jobs:
fi
- name: Build and verify Pixel 10 APK
env:
CARGO_BUILD_JOBS: "1"
CARGO_BUILD_JOBS: "2"
CARGO_INCREMENTAL: "0"
# Keep the colocated Gitea instance responsive on a small host.
JAVA_TOOL_OPTIONS: -XX:ActiveProcessorCount=1
# The previous measured run kept about 16 GiB RAM free. GeckoView's
# Jetifier transform needs more than a 1 GiB heap, while two workers
# still leave ample headroom for the colocated Gitea instance.
JAVA_TOOL_OPTIONS: -XX:ActiveProcessorCount=2
GRADLE_OPTS: >-
-Dorg.gradle.jvmargs=-Xmx1G
-Dorg.gradle.workers.max=1
-Dorg.gradle.jvmargs=-Xmx4G
-Dorg.gradle.workers.max=2
-Dorg.gradle.parallel=false
-Dorg.gradle.daemon=false
-Dkotlin.compiler.execution.strategy=in-process