Skip to content

Commit

Permalink
chore: remove cargo build on test.sh and add validation to toolchain …
Browse files Browse the repository at this point in the history
…nightly
  • Loading branch information
devworlds committed Jan 6, 2025
1 parent 0bb3a32 commit 4352b9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions scripts/workflows/format.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
6 changes: 0 additions & 6 deletions scripts/workflows/test.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4352b9a

Please sign in to comment.