From f77527b4a542797640b5454ff4202335308166bc Mon Sep 17 00:00:00 2001 From: nemo Date: Tue, 14 Jul 2020 17:05:01 -0400 Subject: [PATCH] fix: Make sure cargo is available on remote machine (#1213) --- fil-proofs-tooling/scripts/run-remote.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fil-proofs-tooling/scripts/run-remote.sh b/fil-proofs-tooling/scripts/run-remote.sh index 9eaf5e400..d329c34eb 100755 --- a/fil-proofs-tooling/scripts/run-remote.sh +++ b/fil-proofs-tooling/scripts/run-remote.sh @@ -16,10 +16,17 @@ _metrics_dir=/tmp/metrics/\$_one_day_from_now find /tmp/metrics/ -maxdepth 1 -mindepth 1 -type d -printf "%f\n" \ | xargs -I {} bash -c 'if (({} < \$(date +%s))) ; then rm -rf /tmp/metrics/{} ; fi' 2> /dev/null +# Make sure rust is installed on the remote host. +curl https://sh.rustup.rs -sSf | sh -s -- -y +source $HOME/.cargo/env + git clone -b $1 --single-branch https://github.com/filecoin-project/rust-fil-proofs.git \$_metrics_dir || true cd \$_metrics_dir +cargo update +cargo fetch + ./fil-proofs-tooling/scripts/retry.sh 42 10 60000 \ ./fil-proofs-tooling/scripts/with-lock.sh 42 /tmp/metrics.lock \ ./fil-proofs-tooling/scripts/with-dots.sh \