Skip to content

Commit

Permalink
ci: update java opts for android builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Nov 18, 2024
1 parent 86fdfb3 commit 6c785ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Build example for Android
env:
JAVA_OPTS: '-XX:MaxHeapSize=6g'
JAVA_OPTS: '-Xmx4g -XX:MaxMetaspaceSize=1g'
run: |
echo "MAPS_API_KEY=FAKE_API_KEY" > example/android/local.properties
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
Expand Down
6 changes: 5 additions & 1 deletion example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
org.gradle.jvmargs=-Xmx2g -XX\:MaxHeapSize\=4g -XX:MaxMetaspaceSize=1g
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g

# CI heap issue fixes
org.gradle.parallel=true
org.gradle.daemon=true

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

0 comments on commit 6c785ff

Please sign in to comment.