Skip to content

Commit

Permalink
Check for rustup in CI (in addition to cargo)
Browse files Browse the repository at this point in the history
  • Loading branch information
smheidrich committed Feb 24, 2024
1 parent b85c1ac commit 7334d95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci-utils/before-build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ci-utils/before-build-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7334d95

Please sign in to comment.