From 4352b9a00d8531520877a087d5d5800b58da5d46 Mon Sep 17 00:00:00 2001 From: devworlds Date: Mon, 6 Jan 2025 13:51:42 -0300 Subject: [PATCH] chore: remove cargo build on test.sh and add validation to toolchain nightly --- scripts/workflows/format.sh | 8 ++++++++ scripts/workflows/test.sh | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/workflows/format.sh b/scripts/workflows/format.sh index 3513fcd1f9..bc3ce569b6 100755 --- a/scripts/workflows/format.sh +++ b/scripts/workflows/format.sh @@ -1,4 +1,12 @@ #!/bin/bash + +# Check if the active toolchain is nightly +if ! rustup show active-toolchain | grep -q "nightly"; then + echo "The Rust nightly toolchain is not active. Activate it with:" + echo " rustup default nightly" + exit 1 +fi + for manifest in \ benches/Cargo.toml \ common/Cargo.toml \ diff --git a/scripts/workflows/test.sh b/scripts/workflows/test.sh index 15bb00fed8..21a0c7c5c1 100755 --- a/scripts/workflows/test.sh +++ b/scripts/workflows/test.sh @@ -1,10 +1,4 @@ #!/bin/bash -cargo build --manifest-path=benches/Cargo.toml -cargo build --manifest-path=common/Cargo.toml -cargo build --manifest-path=protocols/Cargo.toml -cargo build --manifest-path=roles/Cargo.toml -cargo build --manifest-path=utils/Cargo.toml - cargo test --manifest-path=roles/Cargo.toml --verbose --test '*' -- --nocapture cargo run --manifest-path=examples/sv1-client-and-server/Cargo.toml --bin client_and_server -- 60