File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 56
56
# https://github.com/bazelbuild/bazel/commit/866ecc8c3d5e0b899e3f0c9c6b2265f16daae842
57
57
# https://stackoverflow.com/a/34386471
58
58
export MSYS2_ARG_CONV_EXCL="*"
59
- echo "build --remote_cache=$CI_BAZEL_REMOTE_CACHE --google_default_credentials" > ci.bazelrc
59
+ if [ "$RUNNER_OS" == "macOS" ]; then
60
+ export BAZEL_MEM="13G"
61
+ else # if [ "$RUNNER_OS" == "Linux" ]; then
62
+ export BAZEL_MEM="6G"
63
+ fi
64
+ {
65
+ echo "startup --host_jvm_args=-Xmx$BAZEL_MEM"
66
+ echo "build --remote_cache=$CI_BAZEL_REMOTE_CACHE --google_default_credentials"
67
+ } > ci.bazelrc
60
68
bazel build //indexer:scip-clang --config="$CONFIG" --execution_log_binary_file=log
61
69
env :
62
70
CONFIG : ${{ matrix.config }}
75
83
SUFFIX=""
76
84
fi
77
85
outBinaryPath="scip-clang${SUFFIX}-$(uname -m)-$OS"
78
- cp bazel-bin/main /scip-ruby "$outBinaryPath"
86
+ cp bazel-bin/indexer /scip-clang "$outBinaryPath"
79
87
echo "outBinaryPath=$outBinaryPath" >> "$GITHUB_ENV"
80
88
echo "suffix=$SUFFIX" >> "$GITHUB_ENV"
81
89
env :
You can’t perform that action at this time.
0 commit comments