Skip to content

Commit 255749b

Browse files
titusfortnerdiemol
andauthored
[build] allow GitHub Actions runner to use 4GB for JVM Heap (#15692)
* [build] allow GitHub Actions runner to use 4GB for JVM Heap * host_jvm_args is a startup option for Bazel, not a command option --------- Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 0eb01ed commit 255749b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/github-actions/ci-build.sh

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

@@ -15,7 +18,7 @@ fi
1518
# Now run the tests. The engflow build uses pinned browsers
1619
# so this should be fine
1720
# shellcheck disable=SC2046
18-
bazel test --config=rbe-ci --build_tests_only \
21+
bazel --host_jvm_args=${HEAP_SIZE} test --config=rbe-ci --build_tests_only \
1922
--keep_going --flaky_test_attempts=2 \
2023
--cache_test_results=${CACHE_RESULTS} \
2124
//... -- $(cat .skipped-tests | tr '\n' ' ')

0 commit comments

Comments
 (0)