diff --git a/ci/install-rust.sh b/ci/install-rust.sh index 8b22dd9ed..ebe2b448c 100755 --- a/ci/install-rust.sh +++ b/ci/install-rust.sh @@ -35,7 +35,7 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then cargo install --locked --force grcov fi -if [ "$RUST_VERSION" = "nightly" ]; then +if [ "$RUST_VERSION" = "nightly" -o "$RUST_VERSION" = "1.80.0" ]; then cargo install --locked cargo-c --version 0.10.3+cargo-0.81 else cargo install --locked cargo-c --version 0.9.26+cargo-0.74 diff --git a/ci/windows-docker/install_cargo_utils.ps1 b/ci/windows-docker/install_cargo_utils.ps1 index 55d780e12..920c44a94 100644 --- a/ci/windows-docker/install_cargo_utils.ps1 +++ b/ci/windows-docker/install_cargo_utils.ps1 @@ -4,7 +4,7 @@ rustup --version rustc --version cargo --version -if ("$RUST_VERSION" -eq "nightly") { +if (("$RUST_VERSION" -eq "nightly") -or ("$RUST_VERSION" -eq "1.80.0" )) { cargo install --locked cargo-c --version 0.10.3+cargo-0.81 } else { cargo install --locked cargo-c --version 0.9.26+cargo-0.74