diff --git a/ci-utils/before-build-mac.sh b/ci-utils/before-build-mac.sh index b954f90..0549024 100644 --- a/ci-utils/before-build-mac.sh +++ b/ci-utils/before-build-mac.sh @@ -13,7 +13,7 @@ mv "$HOST_HOME_DIR/cargo-home-dirs/$ver/.cargo" \ "$HOST_HOME_DIR/" || true # check if cargo avail and download if not -if ! cargo -V; then +if ! { cargo -V && rustup -V; }; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y else echo "Rust toolchain already installed/restored, not downloading again" diff --git a/ci-utils/before-build-win.sh b/ci-utils/before-build-win.sh index c515dc3..b98f135 100644 --- a/ci-utils/before-build-win.sh +++ b/ci-utils/before-build-win.sh @@ -13,7 +13,7 @@ mv "$HOST_HOME_DIR_UNIX/cargo-home-dirs/$ver/.cargo" \ "$HOST_HOME_DIR_UNIX/" || true # check if cargo avail and download if not -if ! cargo -V; then +if ! { cargo -V && rustup -V; }; then curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y else echo "Rust toolchain already installed/restored, not downloading again"