Skip to content

Commit d58d90b

Browse files
committed
ci: increase heap for android-sample and gradle (OOM fix)
1 parent 9bf7ed3 commit d58d90b

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ jobs:
153153
154154
android-sample:
155155
runs-on: ubuntu-latest
156+
env:
157+
# PackageAndroidArtifact$IncrementalSplitterRunnable often OOMs with default heap
158+
GRADLE_OPTS: -Xmx4096m -XX:MaxMetaspaceSize=512m
156159
steps:
157160
- uses: actions/checkout@v4
158161
- name: Set up JDK 21

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# For local development, configure JAVA_HOME in your IDE or environment
66
# org.gradle.java.home=/path/to/java/home
77

8-
# JVM options
9-
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
8+
# JVM options (4GB for AGP packageDebug/IncrementalSplitterRunnable in CI; 2GB was OOM)
9+
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
1010

1111
# Enable Gradle daemon for faster builds
1212
org.gradle.daemon=true

0 commit comments

Comments
 (0)