Increase JVM memory for gradle builds (#236)

Updates to increase amount of memory available during CI builds. I think
this will help with the intermittent `A failure occurred while executing
"com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable`
CI errors.

No user facing changes
This commit is contained in:
damontecres 2025-11-16 19:44:39 -05:00 committed by GitHub
parent 6be2662d4e
commit e3d94ad819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -9,6 +9,7 @@ defaults:
env:
BUILD_DIRS_ARTIFACT: build-dirs
GRADLE_OPTS: "-Dorg.gradle.jvmargs='-Xmx4g -XX:MaxMetaspaceSize=512m'"
jobs:
pre-commit:
@ -42,7 +43,7 @@ jobs:
- name: Build app
id: buildapp
run: |
./gradlew clean assembleDebug
./gradlew clean assembleDebug --no-daemon
apks=$(find app/build/outputs/apk -name '*.apk' -print0 | tr '\0' ',' | sed 's/,$//')
echo "apks=$apks" >> "$GITHUB_OUTPUT"
- name: Tar build dirs