This commit is contained in:
@@ -24,9 +24,9 @@ jobs:
|
|||||||
if command -v rustc >/dev/null 2>&1 && command -v cargo >/dev/null 2>&1; then
|
if command -v rustc >/dev/null 2>&1 && command -v cargo >/dev/null 2>&1; then
|
||||||
echo "Rust already present"
|
echo "Rust already present"
|
||||||
elif command -v apk >/dev/null 2>&1; then
|
elif command -v apk >/dev/null 2>&1; then
|
||||||
apk add --no-cache rust cargo rustfmt clippy
|
apk add --no-cache rust rustfmt rust-clippy
|
||||||
elif command -v apt-get >/dev/null 2>&1; then
|
elif command -v apt-get >/dev/null 2>&1; then
|
||||||
apt-get update && apt-get install -y rustc cargo rustfmt clippy
|
apt-get update && apt-get install -y rustc cargo rustfmt rust-clippy
|
||||||
else
|
else
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --component rustfmt,clippy
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --component rustfmt,clippy
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user