Compare commits

..

4 commits

Author SHA1 Message Date
e99b290c26 deps: bump cargo-binstall from 1.9.0 to 1.10.12
All checks were successful
/ test (map[name:nightly]) (push) Successful in 2m15s
/ test (map[name:stable]) (push) Successful in 2m13s
/ test (map[name:v1.81.0]) (push) Successful in 1m27s
2024-11-14 08:15:26 +00:00
2167b80e63 deps: bump cargo-machete from 0.6.2 to 0.7
All checks were successful
/ test (map[name:v1.81.0]) (push) Successful in 1m25s
/ test (map[name:stable]) (push) Successful in 2m26s
/ test (map[name:nightly]) (push) Successful in 3m18s
2024-11-14 08:15:26 +00:00
066233d1ed feat: add cargo-mutants@24.11
All checks were successful
/ test (map[name:v1.81.0]) (push) Successful in 36s
/ test (map[name:nightly]) (push) Successful in 2m33s
/ test (map[name:stable]) (push) Successful in 3m36s
2024-11-14 08:15:26 +00:00
f710a77230 feat: only update toolchain if it is 'nightly'
All checks were successful
/ test (map[name:v1.81.0]) (push) Successful in 46s
/ test (map[name:nightly]) (push) Successful in 2m55s
/ test (map[name:stable]) (push) Successful in 4m54s
2024-11-14 08:15:15 +00:00
2 changed files with 5 additions and 4 deletions

View file

@ -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.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 && \
rm cargo-binstall.tgz && \
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 \
cargo-chef@0.1 \
cargo-hack@0.6 \
cargo-machete@0.6.2 \
cargo-machete@0.7 \
cargo-mutants@24.11 \
release-plz@0.3
COPY entrypoint.sh /

View file

@ -15,6 +15,8 @@ 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
@ -26,8 +28,6 @@ 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