Skip to content

Commit e15949c

Browse files
committed
Fix OOM: increase JVM heap to 4g, enable parallel builds
1 parent e649f3e commit e15949c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/android.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
run: chmod +x ./gradlew
3434

3535
- name: Build debug APK
36-
run: ./gradlew assembleDebug --stacktrace
36+
env:
37+
GRADLE_OPTS: -Xmx4g -Xms512m
38+
run: ./gradlew assembleDebug --stacktrace --no-daemon
3739

3840
- name: Upload APK
3941
uses: actions/upload-artifact@v4

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
1+
org.gradle.jvmargs=-Xmx4g -Xms512m -Dfile.encoding=UTF-8
22
org.gradle.caching=true
3+
org.gradle.parallel=true
4+
org.gradle.configureondemand=true
35
android.useAndroidX=true
46
android.nonTransitiveRClass=true
57
kotlin.code.style=official

0 commit comments

Comments
 (0)