Skip to content

Commit

Permalink
Merge pull request #6274 from cre4ture/feature/android_incremental_in…
Browse files Browse the repository at this point in the history
…stall_for_retries

android CI: incremental install when retry
  • Loading branch information
cakebaker authored Apr 26, 2024
2 parents 4090d46 + 5d76335 commit f95f363
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/android-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?

Expand Down

0 comments on commit f95f363

Please sign in to comment.