Skip to content

Commit

Permalink
fix: Make sure cargo is available on remote machine (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo authored Jul 14, 2020
1 parent d885569 commit f77527b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fil-proofs-tooling/scripts/run-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f77527b

Please sign in to comment.