From ac4a267d305fe6fec8cf44738792358b2c3d5aa8 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 10 Aug 2026 07:12:29 +0200 Subject: [PATCH] fix(ci): size Android heap from measured usage --- .gitea/workflows/pixel10.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pixel10.yml b/.gitea/workflows/pixel10.yml index 28b8bd67..fcb9750b 100644 --- a/.gitea/workflows/pixel10.yml +++ b/.gitea/workflows/pixel10.yml @@ -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