-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check crates individually (#336)
- Loading branch information
1 parent
b9aa30d
commit d2e480f
Showing
5 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# Checks if all crates compile fine individually | ||
|
||
set -euxo pipefail | ||
|
||
function check_crate { | ||
pushd "$1" > /dev/null | ||
cargo check | ||
cargo test --no-run | ||
popd > /dev/null | ||
} | ||
|
||
for actor in actors/*; do | ||
if [ -d "$actor" ]; then | ||
check_crate "$actor" | ||
fi | ||
done | ||
|
||
others=(fil_actor_interface fil_actors_shared) | ||
for other in "${others[@]}"; do | ||
check_crate "$other" | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters