ci: Don't install cargo-c with --locked on nightly for now

Otherwise a version of ahash is used that doesn't build on nightly anymore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1385>
This commit is contained in:
Sebastian Dröge 2024-02-06 10:30:08 +02:00
parent ebc18ea0b8
commit 36792404a9

View file

@ -35,7 +35,13 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then
cargo install --locked --force grcov cargo install --locked --force grcov
fi fi
if [ "$RUST_VERSION" = "nightly" ]; then
# FIXME: Don't build cargo-c with --locked for now because otherwise a
# version of ahash is used that doesn't build on nightly anymore
cargo install cargo-c --version 0.9.22+cargo-0.72
else
cargo install --locked cargo-c --version 0.9.22+cargo-0.72 cargo install --locked cargo-c --version 0.9.22+cargo-0.72
fi
if [ "$RUST_VERSION" = "nightly" ]; then if [ "$RUST_VERSION" = "nightly" ]; then
rustup component add rustfmt --toolchain nightly rustup component add rustfmt --toolchain nightly