Browse Source

Change the GRADLE_OPTS to alleviate out of memory errors when compiling.

Miku AuahDark 1 year ago
parent
commit
c73f7fec23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/main.yml

+ 1 - 1
.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