Skip to content

Commit

Permalink
Merge pull request stratum-mining#765 from lorbax/build-on-all-worksp…
Browse files Browse the repository at this point in the history
…aces

easy script for compiling during development
  • Loading branch information
Fi3 authored Feb 20, 2024
2 parents 31e48c7 + e69fc53 commit 81bbadf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build-on-all-workspaces.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

#!/bin/sh

WORKSPACES="benches common protocols roles utils"

for workspace in $WORKSPACES; do
echo "Executing build on: $workspace"
cargo build --manifest-path="$workspace/Cargo.toml" --
if [ $? -ne 0 ]; then
echo "Build found some errors in: $workspace"
exit 1
fi

echo "Running fmt on: $workspace"
(cd $workspace && cargo +nightly fmt)
if [ $? -ne 0 ]; then
echo "Fmt failed in: $workspace"
exit 1
fi
done

echo "build success!"


0 comments on commit 81bbadf

Please sign in to comment.