Increase Gradle JVM memory in build workflow

The CI build was failing with a "JVM garbage collector is thrashing" error due to insufficient memory. This commit increases the Gradle max heap size to 2GB in the GitHub Actions workflow to resolve the build failure.
This commit is contained in:
JingMatrix
2025-12-03 19:22:39 +01:00
parent 987c7ba35c
commit 4d9787367c
+2 -1
View File
@@ -60,7 +60,8 @@ jobs:
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew --parallel zipRelease zipDebug --stacktrace
./gradlew zipRelease zipDebug -Porg.gradle.parallel=true -Porg.gradle.vfs.watch=true -Dorg.gradle.jvmargs=-Xmx2048m
- name: Prepare artifact
if: success()