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