Skip to content

Commit b0dff56

Browse files
committed
[build] allow GitHub Actions runner to use 4GB for JVM Heap
1 parent d17c8aa commit b0dff56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/github-actions/ci-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ set -eufo pipefail
44
# We want to see what's going on
55
set -x
66

7+
# Define heap size for GitHub Actions runner
8+
HEAP_SIZE="-Xmx4g"
9+
710
# Default to auto if no parameter is provided
811
CACHE_RESULTS="auto"
912

@@ -17,6 +20,7 @@ fi
1720
# shellcheck disable=SC2046
1821
bazel test --config=rbe-ci --build_tests_only \
1922
--keep_going --flaky_test_attempts=2 \
23+
--host_jvm_args=${HEAP_SIZE} \
2024
--cache_test_results=${CACHE_RESULTS} \
2125
//... -- $(cat .skipped-tests | tr '\n' ' ')
2226

0 commit comments

Comments
 (0)