Skip to content

Commit

Permalink
Update rustup.sh to install rustup if not present (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee authored Jul 23, 2024
1 parent 42cefd2 commit d35b73c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/rustup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env sh

echo "---- setup rustc ----"
if [ $(type rustup) ]; then
echo "rustup already installed"
else
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs --output rustup-init.sh
chmod +x rustup-init.sh
./rustup-init.sh -y
fi
rustup update "${RUST_TOOLCHAIN:-stable}"
rustup default "${RUST_TOOLCHAIN:-stable}"
# only needed for cross-compile tests but we want consistent rust configuration
Expand Down

0 comments on commit d35b73c

Please sign in to comment.