File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 76
76
fail-fast : false # keep running other workflows even if one fails, to see the logs of all possible failures
77
77
matrix :
78
78
runtime : ${{ fromJSON(needs.runtime-matrix.outputs.runtime) }}
79
+ bench_cmd : ["pallet", "overhead"]
79
80
container :
80
81
image : ${{ needs.preflight.outputs.IMAGE }}
81
82
env :
@@ -86,16 +87,21 @@ jobs:
86
87
- name : Checkout
87
88
uses : actions/checkout@v4
88
89
89
- - name : script
90
+ - name : benchmark ${{ matrix.bench_cmd }}
90
91
id : required
91
92
run : |
92
93
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm
93
94
RUNTIME_BLOB_PATH=./target/release/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME
94
95
forklift cargo build --release --locked -p $PACKAGE_NAME -p frame-omni-bencher --features=${{ matrix.runtime.bench_features }} --quiet
95
- echo "Running short benchmarking for PACKAGE_NAME=$PACKAGE_NAME and RUNTIME_BLOB_PATH=$RUNTIME_BLOB_PATH"
96
+ echo "Running short ${{ matrix.bench_cmd }} benchmarking for PACKAGE_NAME=$PACKAGE_NAME and RUNTIME_BLOB_PATH=$RUNTIME_BLOB_PATH"
96
97
ls -lrt $RUNTIME_BLOB_PATH
98
+
99
+ if [ "${{ matrix.bench_cmd }}" == "pallet" ]; then
100
+ cmd="./target/release/frame-omni-bencher v1 benchmark pallet --runtime $RUNTIME_BLOB_PATH --all --steps 2 --repeat 1 $FLAGS"
101
+ elif [ "${{ matrix.bench_cmd }}" == "overhead" ]; then
102
+ cmd="./target/release/frame-omni-bencher v1 benchmark overhead --runtime $RUNTIME_BLOB_PATH"
103
+ elif
97
104
98
- cmd="./target/release/frame-omni-bencher v1 benchmark pallet --runtime $RUNTIME_BLOB_PATH --all --steps 2 --repeat 1 $FLAGS"
99
105
echo "Running command: $cmd"
100
106
eval "$cmd"
101
107
- name : Stop all workflows if failed
You can’t perform that action at this time.
0 commit comments