ci: Use cargo install --locked to make sure to not use too new dependency versions

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1368>
This commit is contained in:
Sebastian Dröge 2023-12-19 13:19:26 +02:00
parent ea002e2e11
commit b5f4246445
2 changed files with 7 additions and 7 deletions

View file

@ -26,20 +26,20 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then
rustup component add clippy-preview rustup component add clippy-preview
rustup component add rustfmt rustup component add rustfmt
cargo install --force cargo-deny cargo install --locked --force cargo-deny
cargo install --force cargo-outdated cargo install --locked --force cargo-outdated
cargo install --force typos-cli cargo install --locked --force typos-cli
# Coverage tools # Coverage tools
rustup component add llvm-tools-preview rustup component add llvm-tools-preview
cargo install --force grcov cargo install --locked --force grcov
fi fi
cargo install cargo-c --version 0.9.22+cargo-0.72 cargo install --locked cargo-c --version 0.9.22+cargo-0.72
if [ "$RUST_VERSION" = "nightly" ]; then if [ "$RUST_VERSION" = "nightly" ]; then
rustup component add rustfmt --toolchain nightly rustup component add rustfmt --toolchain nightly
# Documentation tools # Documentation tools
cargo install --force rustdoc-stripper cargo install --locked --force rustdoc-stripper
fi fi

View file

@ -21,4 +21,4 @@ RUN C:\install_dav1d.ps1
RUN Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile C:\rustup-init.exe RUN Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile C:\rustup-init.exe
RUN C:\rustup-init.exe -y --profile minimal --default-toolchain $env:RUST_VERSION RUN C:\rustup-init.exe -y --profile minimal --default-toolchain $env:RUST_VERSION
RUN cargo install cargo-c --version 0.9.22+cargo-0.72 RUN cargo install --locked cargo-c --version 0.9.22+cargo-0.72