Skip to content

Commit 3566dae

Browse files
authored
Merge 54958d6 into 8a9629b
2 parents 8a9629b + 54958d6 commit 3566dae

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/actions/build_and_test_ya/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ runs:
112112
build_target: ${{ inputs.build_target }}
113113
build_preset: ${{ inputs.build_preset }}
114114
bazel_remote_uri: ${{ fromJSON( inputs.vars ).REMOTE_CACHE_URL || '' }}
115-
bazel_remote_username: ${{ inputs.put_build_results_to_cache && fromJSON( inputs.secs ).REMOTE_CACHE_USERNAME || '' }}
116-
bazel_remote_password: ${{ inputs.put_build_results_to_cache && fromJSON( inputs.secs ).REMOTE_CACHE_PASSWORD || '' }}
115+
bazel_remote_username: ${{ fromJSON( inputs.secs ).REMOTE_CACHE_USERNAME || '' }}
116+
bazel_remote_password: ${{ fromJSON( inputs.secs ).REMOTE_CACHE_PASSWORD || '' }}
117+
put_build_results_to_cache: ${{ inputs.put_build_results_to_cache }}
117118
link_threads: ${{ inputs.link_threads }}
118119
additional_ya_make_args: ${{ inputs.additional_ya_make_args }}
119120

.github/actions/build_ya/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
required: true
99
default: "relwithdebinfo"
1010
description: "debug, relwithdebinfo, release-asan, release-tsan, release, release-cmake14"
11+
put_build_results_to_cache:
12+
required: false
13+
default: "true"
1114
bazel_remote_uri:
1215
required: false
1316
description: "bazel-remote endpoint"
@@ -63,7 +66,7 @@ runs:
6366
extra_params+=(--target="${{ inputs.build_target }}")
6467
fi
6568
66-
if [ ! -z "${{ inputs.bazel_remote_uri }}" ]; then
69+
if [ "${{ inputs.put_build_results_to_cache }}" = "true" ]; then
6770
extra_params+=(--bazel-remote-store)
6871
extra_params+=(--bazel-remote-base-uri "${{ inputs.bazel_remote_uri }}")
6972
fi

0 commit comments

Comments
 (0)