Skip to content

Commit

Permalink
fix: add project gas-costs-bundle to build process for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoks committed Jun 13, 2024
1 parent d09384f commit 4682e72
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pallet/src/assets/move-projects/gas-costs-bundles/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function create_move_project() {
smove bundle -p $NAME
}

rm -rf bundle*
sh ./clean.sh
for i in $(seq 1 $ITERATIONS)
do
create_move_project $i
Expand Down
3 changes: 3 additions & 0 deletions pallet/src/assets/move-projects/gas-costs-bundles/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# #!/bin/bash
cd $(dirname $0)
rm -rf bundle*
10 changes: 5 additions & 5 deletions pallet/src/assets/move-projects/smove-build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ build_dir=(
"signer-scripts"
)
bundle_dir=(
"base58_smove_build"
"basic_coin"
"car-wash-example"
"gas-costs-bundles"
"multiple-signers"
"prohibited-bundle"
"testing-move-stdlib"
"testing-substrate-stdlib"
"using_stdlib_natives"

"car-wash-example"
"multiple-signers"
"base58_smove_build"
"basic_coin"
)


Expand Down
17 changes: 12 additions & 5 deletions pallet/src/assets/move-projects/smove-clean-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,28 @@ cd $(dirname $0)
build_dir=(
"balance"
"base58_smove_build"
"basic_coin"
"car-wash-example"
"gas-costs"
"gas-costs-bundles"
"get-resource"
"move-basics"
"multiple-signers"
"signer-scripts"
"basic_coin"
"prohibited-bundle"
"signer-scripts"
"testing-move-stdlib"
"testing-substrate-stdlib"
"using_stdlib_natives"
)

# Clean build directories.
for i in "${build_dir[@]}"; do
echo $i
rm -rf "$i/build"
for dir in "${build_dir[@]}"; do
echo $dir
clean_script=$dir"/clean.sh"
if [ -f "$clean_script" ];
then
sh $clean_script
else
rm -rf "$dir/build"
fi
done

0 comments on commit 4682e72

Please sign in to comment.