From c73f7fec230576f01a6b837522d4455fceb7a063 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Sat, 16 Mar 2024 11:04:53 +0800 Subject: [PATCH] Change the GRADLE_OPTS to alleviate out of memory errors when compiling. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70fc1484..7984cdab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: matrix: build_type: [Debug, Release] env: - JAVA_OPTS: '-Xmx10G' + GRADLE_OPTS: "-Dorg.gradle.jvmargs='-Xmx4G'" steps: - name: Prepare Environment run: sudo apt-get update && curl -Lo kitware-archive.sh https://apt.kitware.com/kitware-archive.sh && sudo bash ./kitware-archive.sh