-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb6e02e
commit db766ba
Showing
5 changed files
with
66 additions
and
21 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
echo "We're building every contract :-) see ya! " | ||
for dir in */; do | ||
# Remove trailing slash from directory name | ||
dir=${dir%/} | ||
|
||
# Change to the directory | ||
cd "$dir" | ||
|
||
echo "Building $dir..." | ||
|
||
# Check if the current directory is multi-contract-caller | ||
if [ "$dir" = "multi-contract-caller" ]; then | ||
# Execute build-all.sh for multi-contract-caller | ||
./build-all.sh | ||
else | ||
# Execute cargo contract build for other directories | ||
cargo contract build --features phink | ||
fi | ||
|
||
# Change back to the parent directory | ||
cd .. | ||
|
||
echo "Finished building $dir" | ||
echo | ||
done | ||
|
||
echo "All builds completed." | ||
|
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