From 63222e45d1be89719a54036067030f1f27c5eb0a Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Thu, 26 Oct 2023 11:49:38 +0200 Subject: [PATCH] Reduce mvn -Xmx option to 2g in publish_snapshot workflow --- .github/workflows/publish_snapshot.yml | 1 + dev/create-release/release-build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml index 6d55f1afed0fc..c78b633a980c5 100644 --- a/.github/workflows/publish_snapshot.yml +++ b/.github/workflows/publish_snapshot.yml @@ -70,4 +70,5 @@ jobs: GPG_KEY: "not_used" GPG_PASSPHRASE: "not_used" GIT_REF: ${{ matrix.branch }} + MAVEN_MXM_OPT: 2g run: ./dev/create-release/release-build.sh publish-snapshot diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index f3571c4e48cf9..69494dc5107c5 100755 --- a/dev/create-release/release-build.sh +++ b/dev/create-release/release-build.sh @@ -227,7 +227,7 @@ git clean -d -f -x rm -f .gitignore cd .. -export MAVEN_OPTS="-Xss128m -Xmx12g -XX:ReservedCodeCacheSize=1g" +export MAVEN_OPTS="-Xss128m -Xmx${MAVEN_MXM_OPT:-12g} -XX:ReservedCodeCacheSize=1g" if [[ "$1" == "package" ]]; then # Source and binary tarballs