mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 15:10:27 +00:00
Set CARGO_NET_RETRY and RUSTUP_MAX_RETRIES
This commit is contained in:
5
main.sh
5
main.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user