diff --git a/.forgejo/workflows/android-ci.yml b/.forgejo/workflows/android-ci.yml index 58df49d..1262a87 100644 --- a/.forgejo/workflows/android-ci.yml +++ b/.forgejo/workflows/android-ci.yml @@ -230,6 +230,13 @@ jobs: docker volume create "$GRADLE_VOLUME" >/dev/null docker rm -f "$BUILD_CONTAINER" >/dev/null 2>&1 || true docker pull "$ANDROID_IMAGE" + # 2 GB of Gradle heap, not 1: the only budget in this build that is close + # is the single-use daemon's heap, which now has to package a 55 MB SDK + # lib (plus RandomX's 1.1 MB) through AGP's in-daemon packaging. Run 414 + # died in `:app:packageRelease` with the cause hidden inside + # `PackageAndroidArtifact$IncrementalSplitterRunnable` — no "Caused by" + # line, nothing in the log — so give it room instead of guessing again. + # The runner has 15 GB and the job's peak RSS is ~3 GB. docker create --name "$BUILD_CONTAINER" -i \ -e CARGO_TERM_COLOR=never \ -e CARGO_BUILD_JOBS="$CARGO_BUILD_JOBS" \ @@ -243,7 +250,7 @@ jobs: -e ONIONWIRE_REQUIRE_RELEASE_KEY=false \ -e RUST_TOOLCHAIN="$RUST_TOOLCHAIN" \ -e ANDROID_CMDLINE_TOOLS_URL="$ANDROID_CMDLINE_TOOLS_URL" \ - -e GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=384m -Dfile.encoding=UTF-8" \ + -e GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8" \ -v "$SDK_VOLUME":/opt/android-sdk \ -v "$CARGO_VOLUME":/cargo \ -v "$TARGET_VOLUME":/cargo-target \ diff --git a/.forgejo/workflows/android-release.yml b/.forgejo/workflows/android-release.yml index a1d2874..f725ddd 100644 --- a/.forgejo/workflows/android-release.yml +++ b/.forgejo/workflows/android-release.yml @@ -299,6 +299,13 @@ jobs: docker volume create "$GRADLE_VOLUME" >/dev/null docker rm -f "$BUILD_CONTAINER" >/dev/null 2>&1 || true docker pull "$ANDROID_IMAGE" + # 2 GB of Gradle heap, not 1: the only budget in this build that is close + # is the single-use daemon's heap, which now has to package a 55 MB SDK + # lib (plus RandomX's 1.1 MB) through AGP's in-daemon packaging. Run 414 + # died in `:app:packageRelease` with the cause hidden inside + # `PackageAndroidArtifact$IncrementalSplitterRunnable` — no "Caused by" + # line, nothing in the log — so give it room instead of guessing again. + # The runner has 15 GB and the job's peak RSS is ~3 GB. docker create --name "$BUILD_CONTAINER" -i \ -e CARGO_TERM_COLOR=never \ -e CARGO_BUILD_JOBS="$CARGO_BUILD_JOBS" \ @@ -314,7 +321,7 @@ jobs: -e ONIONWIRE_VERSION="$VERSION" \ -e RUST_TOOLCHAIN="$RUST_TOOLCHAIN" \ -e ANDROID_CMDLINE_TOOLS_URL="$ANDROID_CMDLINE_TOOLS_URL" \ - -e GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=384m -Dfile.encoding=UTF-8" \ + -e GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8" \ -v "$SDK_VOLUME":/opt/android-sdk \ -v "$CARGO_VOLUME":/cargo \ -v "$TARGET_VOLUME":/cargo-target \