diff options
author | AlexSm <alex@ydb.tech> | 2024-07-01 20:31:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 20:31:49 +0200 |
commit | fee60694495df90b8de23107514960ba962caec4 (patch) | |
tree | e47a2f073847353ea2edb5c52cfa78f94d7130d4 | |
parent | d82c9ad5595510629fea2aa1f037fd18ed7ae4db (diff) | |
download | ydb-fee60694495df90b8de23107514960ba962caec4.tar.gz |
Set larger build cache (#6149)
-rw-r--r-- | .github/actions/build_and_test_ya/action.yml | 1 | ||||
-rw-r--r-- | .github/actions/build_ya/action.yml | 4 | ||||
-rw-r--r-- | .github/actions/test_ya/action.yml | 10 |
3 files changed, 11 insertions, 4 deletions
diff --git a/.github/actions/build_and_test_ya/action.yml b/.github/actions/build_and_test_ya/action.yml index 4afa89b93b..b280c4d938 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 8098294547..a021055252 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 bd098cb516..e91fdcad8e 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 |