Skip to content

Commit c074f1d

Browse files
authored
build: fix ci out-of-memory errors in unit tests (#1198)
1 parent 2afcc20 commit c074f1d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
2323

2424
- name: Unit Test with Gradle Wrapper
25-
run: ./gradlew test
25+
run: ./gradlew testGithubReleaseUnitTest --max-workers=2

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
org.gradle.daemon=true
2-
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC
2+
org.gradle.jvmargs=-Xmx8g -Xms512m -XX:MaxMetaspaceSize=1g -Dkotlin.daemon.jvm.options=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dfile.encoding=UTF-8
33
org.gradle.parallel=true
4+
kotlin.compiler.execution.strategy=in-process
45
android.buildConfig = true
56
android.useAndroidX=true
67
android.nonTransitiveRClass=true

0 commit comments

Comments
 (0)