diff --git a/.github/actions/build_and_test_ya/action.yml b/.github/actions/build_and_test_ya/action.yml index 4afa89b93b54..b280c4d938ad 100644 --- a/.github/actions/build_and_test_ya/action.yml +++ b/.github/actions/build_and_test_ya/action.yml @@ -132,6 +132,7 @@ runs: link_threads: ${{ inputs.link_threads }} additional_ya_make_args: ${{ inputs.additional_ya_make_args }} test_threads: ${{ inputs.test_threads }} + bazel_remote_uri: ${{ fromJSON( inputs.vars ).REMOTE_CACHE_URL || '' }} - name: Notify about failed build diff --git a/.github/actions/build_ya/action.yml b/.github/actions/build_ya/action.yml index 8098294547ed..a02105525239 100644 --- a/.github/actions/build_ya/action.yml +++ b/.github/actions/build_ya/action.yml @@ -73,7 +73,7 @@ runs: if [ "${{ inputs.put_build_results_to_cache }}" = "true" ]; then extra_params+=(--bazel-remote-username "${{ inputs.bazel_remote_username }}") extra_params+=(--bazel-remote-password "${{ inputs.bazel_remote_password }}") - extra_params+=(--bazel-remote-put --dist-cache-max-file-size=209715200 --add-result .o --add-result .a) + extra_params+=(--bazel-remote-put --dist-cache-max-file-size=209715200) fi case "${{ inputs.build_preset }}" in @@ -125,7 +125,7 @@ runs: # to be sure set -o pipefail - ./ya make --build "${build_type}" --force-build-depends -T --stat -DCONSISTENT_DEBUG \ + ./ya make --cache-size 2TB --build "${build_type}" --force-build-depends -T --stat -DCONSISTENT_DEBUG \ --log-file "$TMP_DIR/ya_log.txt" --evlog-file "$TMP_DIR/ya_evlog.jsonl" \ --link-threads "${{ inputs.link_threads }}" \ "${extra_params[@]}" |& tee $TMP_DIR/ya_make.log && echo "status=true" >> $GITHUB_OUTPUT || ( diff --git a/.github/actions/test_ya/action.yml b/.github/actions/test_ya/action.yml index bd098cb5163d..e91fdcad8e2f 100644 --- a/.github/actions/test_ya/action.yml +++ b/.github/actions/test_ya/action.yml @@ -36,6 +36,10 @@ inputs: testman_project_id: required: false description: "test manager project id" + bazel_remote_uri: + required: false + description: "bazel-remote endpoint" + runs: using: "composite" steps: @@ -204,8 +208,10 @@ runs: params+=(${{ inputs.additional_ya_make_args }}) fi - # Also build targets which are not in tests' dependencies - params+=(--build-all) + if [ ! -z "${{ inputs.bazel_remote_uri }}" ]; then + params+=(--bazel-remote-store) + params+=(--bazel-remote-base-uri "${{ inputs.bazel_remote_uri }}") + fi echo "::debug::get version" ./ya --version