mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-20 23:26:40 +00:00
ci: Update version checks for installing Rust tools
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1604>
This commit is contained in:
parent
20f9ba8728
commit
9f8f349ee7
2 changed files with 9 additions and 28 deletions
|
@ -27,33 +27,19 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
|
|
||||||
cargo install --locked cargo-deny
|
cargo install --locked cargo-deny
|
||||||
if [ "$RUST_VERSION" = "1.71.1" ]; then
|
# Don't use --locked because time-0.3.30 does not build with 1.80 or newer
|
||||||
cargo install --locked cargo-outdated
|
cargo install cargo-outdated
|
||||||
else
|
|
||||||
# Don't use --locked because time-0.3.30 does not build with 1.80 or newer
|
|
||||||
cargo install cargo-outdated
|
|
||||||
fi
|
|
||||||
cargo install --locked typos-cli --version "1.19.0"
|
cargo install --locked typos-cli --version "1.19.0"
|
||||||
|
|
||||||
# Coverage tools
|
# Coverage tools
|
||||||
rustup component add llvm-tools-preview
|
rustup component add llvm-tools-preview
|
||||||
if [ "$RUST_VERSION" = "1.71.1" ]; then
|
cargo install --locked grcov
|
||||||
cargo install --locked grcov
|
|
||||||
else
|
|
||||||
# Don't use --locked because time-0.3.30 does not build with 1.80 or newer
|
|
||||||
cargo install grcov
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Multiple dependencies of cargo-nextest require 1.74/1.75 nowadays
|
cargo install --locked cargo-nextest
|
||||||
if [ "$RUST_VERSION" = "1.71.1" ]; then
|
|
||||||
cargo install --locked cargo-nextest@0.9.67
|
|
||||||
else
|
|
||||||
cargo install --locked cargo-nextest
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$RUST_VERSION" = "1.71.1" ]; then
|
if [ "$RUST_VERSION" = "1.80.1" ]; then
|
||||||
cargo install --locked cargo-c --version 0.9.26+cargo-0.74
|
cargo install --locked cargo-c --version 0.10.5+cargo-0.83
|
||||||
else
|
else
|
||||||
cargo install --locked cargo-c --version 0.10.7+cargo-0.84
|
cargo install --locked cargo-c --version 0.10.7+cargo-0.84
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,8 +4,8 @@ rustup --version
|
||||||
rustc --version
|
rustc --version
|
||||||
cargo --version
|
cargo --version
|
||||||
|
|
||||||
if ("$env:RUST_VERSION" -eq "1.71.1") {
|
if ("$env:RUST_VERSION" -eq "1.80.1") {
|
||||||
cargo install --locked cargo-c --version 0.9.26+cargo-0.74
|
cargo install --locked cargo-c --version 0.10.5+cargo-0.93
|
||||||
} else {
|
} else {
|
||||||
cargo install --locked cargo-c --version 0.10.7+cargo-0.84
|
cargo install --locked cargo-c --version 0.10.7+cargo-0.84
|
||||||
}
|
}
|
||||||
|
@ -15,12 +15,7 @@ if (!$?) {
|
||||||
Exit 1
|
Exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Multiple dependencies of cargo-nextest require 1.74/1.75 nowadays
|
cargo install --locked cargo-nextest
|
||||||
if ("$env:RUST_VERSION" -eq "1.71.1") {
|
|
||||||
cargo install --locked cargo-nextest@0.9.67
|
|
||||||
} else {
|
|
||||||
cargo install --locked cargo-nextest
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$?) {
|
if (!$?) {
|
||||||
Write-Host "Failed to install cargo-nextest"
|
Write-Host "Failed to install cargo-nextest"
|
||||||
|
|
Loading…
Reference in a new issue