Skip to content

Commit f95f363

Browse files
authored
Merge pull request #6274 from cre4ture/feature/android_incremental_install_for_retries
android CI: incremental install when retry
2 parents 4090d46 + 5d76335 commit f95f363

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

util/android-commands.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,10 @@ snapshot() {
515515

516516
echo "Installing cargo-nextest"
517517
# We need to install nextest via cargo currently, since there is no pre-built binary for android x86
518-
command="export CARGO_TERM_COLOR=always && cargo install cargo-nextest"
518+
# explicitly set CARGO_TARGET_DIR as otherwise a random generated tmp directory is used,
519+
# which prevents incremental build for the retries.
520+
command="export CARGO_TERM_COLOR=always && export CARGO_TARGET_DIR=\"cargo_install_target_dir\" && cargo install cargo-nextest"
521+
519522
run_with_retry 3 run_command_via_ssh "$command"
520523
return_code=$?
521524

0 commit comments

Comments
 (0)