Skip to content

Commit

Permalink
chore: fix path to script on general-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
devworlds committed Dec 31, 2024
1 parent b5410a1 commit 454cb15
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/build_projects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
cargo build --manifest-path=benches/Cargo.toml
cargo build --manifest-path=protocols/Cargo.toml
cargo build --manifest-path=roles/Cargo.toml
cargo build --manifest-path=utils/Cargo.toml
10 changes: 10 additions & 0 deletions scripts/run_clippy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
for manifest in \
benches/Cargo.toml \
common/Cargo.toml \
protocols/Cargo.toml \
roles/Cargo.toml \
utils/Cargo.toml \
utils/message-generator/Cargo.toml; do
cargo clippy --manifest-path=$manifest -- -D warnings -A dead-code
done
10 changes: 10 additions & 0 deletions scripts/run_fmt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
for manifest in \
benches/Cargo.toml \
common/Cargo.toml \
protocols/Cargo.toml \
roles/Cargo.toml \
utils/Cargo.toml \
utils/message-generator/Cargo.toml; do
cargo fmt --all --manifest-path=$manifest -- --check
done
25 changes: 25 additions & 0 deletions scripts/run_semver_checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
for dir in \
common \
utils/buffer \
protocols/v2/binary-sv2/no-serde-sv2/codec \
protocols/v2/binary-sv2/serde-sv2 \
protocols/v2/binary-sv2/binary-sv2 \
protocols/v2/const-sv2 \
protocols/v2/framing-sv2 \
protocols/v2/noise-sv2 \
protocols/v2/codec-sv2 \
protocols/v2/subprotocols/common-messages \
protocols/v2/subprotocols/job-declaration \
protocols/v2/subprotocols/mining \
protocols/v2/subprotocols/template-distribution \
protocols/v2/sv2-ffi \
protocols/v2/roles-logic-sv2 \
protocols/v1 \
utils/bip32-key-derivation \
utils/error-handling \
utils/key-utils \
roles/roles-utils/network-helpers \
roles/roles-utils/rpc; do
cargo semver-checks --manifest-path="$dir/Cargo.toml"
done

0 comments on commit 454cb15

Please sign in to comment.