From 904ccbfed3ee8df7d8cd47b1bcd13619aaf9e64c Mon Sep 17 00:00:00 2001 From: adarro Date: Sun, 25 Aug 2024 12:05:38 -0600 Subject: [PATCH] add gradle_opts to increase mem for build. --- .github/workflows/sonar_analysis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonar_analysis.yml b/.github/workflows/sonar_analysis.yml index 2d2d56e1..6371ae95 100644 --- a/.github/workflows/sonar_analysis.yml +++ b/.github/workflows/sonar_analysis.yml @@ -5,6 +5,8 @@ on: - master pull_request: types: [opened, synchronize, reopened] +env: + GRADLE_OPTS: org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m permissions: read-all jobs: build: @@ -35,4 +37,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew build aggregateScoverage sonar --info org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m + run: ./gradlew build aggregateScoverage sonar --info