File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ runs:
132
132
link_threads : ${{ inputs.link_threads }}
133
133
additional_ya_make_args : ${{ inputs.additional_ya_make_args }}
134
134
test_threads : ${{ inputs.test_threads }}
135
+ bazel_remote_uri : ${{ fromJSON( inputs.vars ).REMOTE_CACHE_URL || '' }}
135
136
136
137
137
138
- name : Notify about failed build
Original file line number Diff line number Diff line change 73
73
if [ "${{ inputs.put_build_results_to_cache }}" = "true" ]; then
74
74
extra_params+=(--bazel-remote-username "${{ inputs.bazel_remote_username }}")
75
75
extra_params+=(--bazel-remote-password "${{ inputs.bazel_remote_password }}")
76
- extra_params+=(--bazel-remote-put --dist-cache-max-file-size=209715200 --add-result .o --add-result .a )
76
+ extra_params+=(--bazel-remote-put --dist-cache-max-file-size=209715200)
77
77
fi
78
78
79
79
case "${{ inputs.build_preset }}" in
@@ -125,7 +125,7 @@ runs:
125
125
# to be sure
126
126
set -o pipefail
127
127
128
- ./ya make --build "${build_type}" --force-build-depends -T --stat -DCONSISTENT_DEBUG \
128
+ ./ya make --cache-size 2TB -- build "${build_type}" --force-build-depends -T --stat -DCONSISTENT_DEBUG \
129
129
--log-file "$TMP_DIR/ya_log.txt" --evlog-file "$TMP_DIR/ya_evlog.jsonl" \
130
130
--link-threads "${{ inputs.link_threads }}" \
131
131
"${extra_params[@]}" |& tee $TMP_DIR/ya_make.log && echo "status=true" >> $GITHUB_OUTPUT || (
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ inputs:
36
36
testman_project_id :
37
37
required : false
38
38
description : " test manager project id"
39
+ bazel_remote_uri :
40
+ required : false
41
+ description : " bazel-remote endpoint"
42
+
39
43
runs :
40
44
using : " composite"
41
45
steps :
@@ -204,8 +208,10 @@ runs:
204
208
params+=(${{ inputs.additional_ya_make_args }})
205
209
fi
206
210
207
- # Also build targets which are not in tests' dependencies
208
- params+=(--build-all)
211
+ if [ ! -z "${{ inputs.bazel_remote_uri }}" ]; then
212
+ params+=(--bazel-remote-store)
213
+ params+=(--bazel-remote-base-uri "${{ inputs.bazel_remote_uri }}")
214
+ fi
209
215
210
216
echo "::debug::get version"
211
217
./ya --version
You can’t perform that action at this time.
0 commit comments