2024-08-12 15:38:15 +00:00
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
|
|
|
|
|
|
|
rustup --version
|
|
|
|
rustc --version
|
|
|
|
cargo --version
|
|
|
|
|
2024-08-16 17:08:04 +00:00
|
|
|
if ("$env:RUST_VERSION" -eq "1.71.1") {
|
2024-08-05 08:24:45 +00:00
|
|
|
cargo install --locked cargo-c --version 0.9.26+cargo-0.74
|
2024-08-13 06:33:36 +00:00
|
|
|
} else {
|
|
|
|
cargo install --locked cargo-c --version 0.10.3+cargo-0.81
|
2024-08-05 08:24:45 +00:00
|
|
|
}
|
2024-08-12 15:38:15 +00:00
|
|
|
|
|
|
|
if (!$?) {
|
|
|
|
Write-Host "Failed to install cargo-c"
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
2024-08-20 17:48:04 +00:00
|
|
|
# Multiple dependencies of cargo-nextest require 1.74/1.75 nowadays
|
|
|
|
if ("$env:RUST_VERSION" -eq "1.71.1") {
|
|
|
|
cargo install --locked cargo-nextest@0.9.67
|
|
|
|
} else {
|
|
|
|
cargo install --locked cargo-nextest
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$?) {
|
|
|
|
Write-Host "Failed to install cargo-nextest"
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
2024-08-12 15:38:15 +00:00
|
|
|
cargo-cbuild --version
|
2024-08-20 17:48:04 +00:00
|
|
|
cargo nextest --version
|