Compare commits
No commits in common. "e99b290c26717b0bce211a5233eb9a8222789512" and "6ffa2b739c762923860d322a5f8ee547d2563d41" have entirely different histories.
e99b290c26
...
6ffa2b739c
2 changed files with 4 additions and 5 deletions
|
@ -13,7 +13,7 @@ RUN apt-get update \
|
|||
&& \
|
||||
rm -r /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.10.12/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
|
||||
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.9.0/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
|
||||
tar -xzf cargo-binstall.tgz && \
|
||||
rm cargo-binstall.tgz && \
|
||||
mv cargo-binstall /usr/local/bin/
|
||||
|
@ -21,8 +21,7 @@ RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.10
|
|||
RUN cargo binstall -y \
|
||||
cargo-chef@0.1 \
|
||||
cargo-hack@0.6 \
|
||||
cargo-machete@0.7 \
|
||||
cargo-mutants@24.11 \
|
||||
cargo-machete@0.6.2 \
|
||||
release-plz@0.3
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
|
|
@ -15,8 +15,6 @@ echo "Default toolchain: ${TOOLCHAIN}"
|
|||
if test "${ARGS[0]}" == "nightly"; then
|
||||
TOOLCHAIN="nightly"
|
||||
ARGS=("${ARGS[@]:1}")
|
||||
echo ">>> Update nightly toolchain"
|
||||
rustup update "${TOOLCHAIN}"
|
||||
fi
|
||||
if test "${ARGS[0]}" == "stable"; then
|
||||
TOOLCHAIN="stable" # redundant as this is the default
|
||||
|
@ -28,6 +26,8 @@ if [[ "${ARGS[0]}" == v1* ]]; then
|
|||
fi
|
||||
echo "Selected toolchain: ${TOOLCHAIN}"
|
||||
|
||||
echo ">>> Update toolchain"
|
||||
rustup update "${TOOLCHAIN}"
|
||||
echo ">>> Install rustfmt and clippy"
|
||||
rustup component add --toolchain "${TOOLCHAIN}" rustfmt clippy
|
||||
|
||||
|
|
Loading…
Reference in a new issue