Set CARGO_NET_RETRY and RUSTUP_MAX_RETRIES

This commit is contained in:
Taiki Endo
2023-01-16 19:45:56 +09:00
parent c1300c3f7c
commit b95ae1b223

View File

@@ -311,6 +311,11 @@ sys_install() {
esac
}
# cargo-binstall may call `cargo install` on their fallback: https://github.com/taiki-e/install-action/pull/54#issuecomment-1383140833
# cross calls rustup on `cross --version` if the current directly is cargo workspace.
export CARGO_NET_RETRY=10
export RUSTUP_MAX_RETRIES=10
if [[ $# -gt 0 ]]; then
bail "invalid argument '$1'"
fi