From 4d9787367c7a014fdae3ca6cbb652f4d1b00e02e Mon Sep 17 00:00:00 2001 From: JingMatrix Date: Wed, 3 Dec 2025 18:21:25 +0100 Subject: [PATCH] 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. --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 084dd9a..4d4e30f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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()