actions-base-image/install-rust.sh
asonix 481b99308f
Some checks failed
/ build (amd64) (push) Successful in 2m23s
/ build (arm64) (push) Has been cancelled
/ publish-docker (push) Has been cancelled
/ publish-forgejo (push) Has been cancelled
Initial commit
2024-02-08 13:09:59 -06:00

19 lines
464 B
Bash

#!/usr/bin/env bash
set -xe
TOOLCHAIN=${1:-'stable'}
mkdir -p /opt
curl --proto '=https' --tlsv1.2 -sSfL 'https://sh.rustup.rs' -o /opt/rustup.sh
chmod +x /opt/rustup.sh
/opt/rustup.sh --profile minimal --default-toolchain $TOOLCHAIN -y
rm /opt/rustup.sh
rustup component add clippy
rustup target add x86_64-unknown-linux-musl
rustup target add armv7-unknown-linux-musleabihf
rustup target add aarch64-unknown-linux-musl
cargo install cargo-zigbuild