Skip to content

Commit fee6069

Browse files
Set larger build cache (#6149)
1 parent d82c9ad commit fee6069

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/actions/build_and_test_ya/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ runs:
132132
link_threads: ${{ inputs.link_threads }}
133133
additional_ya_make_args: ${{ inputs.additional_ya_make_args }}
134134
test_threads: ${{ inputs.test_threads }}
135+
bazel_remote_uri: ${{ fromJSON( inputs.vars ).REMOTE_CACHE_URL || '' }}
135136

136137

137138
- name: Notify about failed build

.github/actions/build_ya/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ runs:
7373
if [ "${{ inputs.put_build_results_to_cache }}" = "true" ]; then
7474
extra_params+=(--bazel-remote-username "${{ inputs.bazel_remote_username }}")
7575
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)
7777
fi
7878
7979
case "${{ inputs.build_preset }}" in
@@ -125,7 +125,7 @@ runs:
125125
# to be sure
126126
set -o pipefail
127127
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 \
129129
--log-file "$TMP_DIR/ya_log.txt" --evlog-file "$TMP_DIR/ya_evlog.jsonl" \
130130
--link-threads "${{ inputs.link_threads }}" \
131131
"${extra_params[@]}" |& tee $TMP_DIR/ya_make.log && echo "status=true" >> $GITHUB_OUTPUT || (

.github/actions/test_ya/action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ inputs:
3636
testman_project_id:
3737
required: false
3838
description: "test manager project id"
39+
bazel_remote_uri:
40+
required: false
41+
description: "bazel-remote endpoint"
42+
3943
runs:
4044
using: "composite"
4145
steps:
@@ -204,8 +208,10 @@ runs:
204208
params+=(${{ inputs.additional_ya_make_args }})
205209
fi
206210
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
209215
210216
echo "::debug::get version"
211217
./ya --version

0 commit comments

Comments
 (0)