[build] Increase Gradle JVM heap size (#4172)

wpimath artifact publishing was running out of heap
This commit is contained in:
Tyler Veness
2022-04-24 23:13:57 -07:00
committed by GitHub
parent 5ebe911933
commit fbe761f7f6
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ jobs:
build-options: "-Ponlylinuxaarch64bionic"
- container: wpilib/ubuntu-base:18.04
artifact-name: Linux
build-options: "-Dorg.gradle.jvmargs=-Xmx2g"
build-options: "-Ponlylinuxx86-64"
name: "Build - ${{ matrix.artifact-name }}"
runs-on: ubuntu-latest
container: ${{ matrix.container }}

View File

@@ -1,6 +1,6 @@
# The --add-exports flags work around a bug with spotless and JDK 17
# https://github.com/diffplug/spotless/issues/834
org.gradle.jvmargs=-Xmx1g \
org.gradle.jvmargs=-Xmx2g \
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \