diff options
author | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2024-04-26 16:16:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 16:16:59 +0200 |
commit | f95f363096610d7e5e1556d6d0a32b5018065c4c (patch) | |
tree | 75ce3ce33ce36468cd5da00bc5cb89a3276a23f6 | |
parent | 4090d468c0f67e230d512ef2f9efefbdec5730ac (diff) | |
parent | 5d763358fa202a958d39ff6be8c399ed640e5b1e (diff) |
Merge pull request #6274 from cre4ture/feature/android_incremental_install_for_retries0.0.26
android CI: incremental install when retry
-rwxr-xr-x | util/android-commands.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/android-commands.sh b/util/android-commands.sh index 48fdd86d84..ac84917444 100755 --- a/util/android-commands.sh +++ b/util/android-commands.sh @@ -515,7 +515,10 @@ snapshot() { echo "Installing cargo-nextest" # We need to install nextest via cargo currently, since there is no pre-built binary for android x86 - command="export CARGO_TERM_COLOR=always && cargo install cargo-nextest" + # explicitly set CARGO_TARGET_DIR as otherwise a random generated tmp directory is used, + # which prevents incremental build for the retries. + command="export CARGO_TERM_COLOR=always && export CARGO_TARGET_DIR=\"cargo_install_target_dir\" && cargo install cargo-nextest" + run_with_retry 3 run_command_via_ssh "$command" return_code=$? |