Skip to content

Commit 6c785ff

Browse files
committed
ci: update java opts for android builds
1 parent 86fdfb3 commit 6c785ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Build example for Android
166166
env:
167-
JAVA_OPTS: '-XX:MaxHeapSize=6g'
167+
JAVA_OPTS: '-Xmx4g -XX:MaxMetaspaceSize=1g'
168168
run: |
169169
echo "MAPS_API_KEY=FAKE_API_KEY" > example/android/local.properties
170170
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"

example/android/gradle.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13-
org.gradle.jvmargs=-Xmx2g -XX\:MaxHeapSize\=4g -XX:MaxMetaspaceSize=1g
13+
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
14+
15+
# CI heap issue fixes
16+
org.gradle.parallel=true
17+
org.gradle.daemon=true
1418

1519
# When configured, Gradle will run in incubating parallel mode.
1620
# This option should only be used with decoupled projects. More details, visit

0 commit comments

Comments
 (0)