diff --git a/scripts/workflows/format.sh b/scripts/workflows/format.sh index 3513fcd1f..bc3ce569b 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 15bb00fed..21a0c7c5c 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