build: install nightly and v1.74.1 directly in dockerfile

Switching test from 1.81.0 to 1.74.1 to match an MSRV that I actually use.
This commit is contained in:
Paul Campbell 2025-01-11 20:04:51 +00:00
parent 1a5bd83c1e
commit 856cce5c03
3 changed files with 7 additions and 37 deletions

View file

@ -27,12 +27,14 @@ RUN cargo binstall -y \
cargo-mutants@25.0 \
release-plz@0.3
COPY update.sh /
# should be a no-op if the FROM line is up-to-date
RUN /update.sh stable
RUN rustup update stable && rustup component add --toolchain stable rustfmt clippy
RUN rustup install nightly && /update.sh nightly
# install nightly
RUN rustup install nightly && rustup component add --toolchain nightly rustfmt clippy
# install v1.74.1
RUN rustup install 1.74.1 && rustup component add --toolchain 1.74.1 rustfmt clippy
COPY entrypoint.sh /