Skip to content

Commit dc7194d

Browse files
committed
run frame-omni-bencher-overhead command in CI
1 parent 4c28354 commit dc7194d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/check-frame-omni-bencher.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
fail-fast: false # keep running other workflows even if one fails, to see the logs of all possible failures
7777
matrix:
7878
runtime: ${{ fromJSON(needs.runtime-matrix.outputs.runtime) }}
79+
bench_cmd: ["pallet", "overhead"]
7980
container:
8081
image: ${{ needs.preflight.outputs.IMAGE }}
8182
env:
@@ -86,16 +87,21 @@ jobs:
8687
- name: Checkout
8788
uses: actions/checkout@v4
8889

89-
- name: script
90+
- name: benchmark ${{ matrix.bench_cmd }}
9091
id: required
9192
run: |
9293
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm
9394
RUNTIME_BLOB_PATH=./target/release/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME
9495
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"
9697
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
97104
98-
cmd="./target/release/frame-omni-bencher v1 benchmark pallet --runtime $RUNTIME_BLOB_PATH --all --steps 2 --repeat 1 $FLAGS"
99105
echo "Running command: $cmd"
100106
eval "$cmd"
101107
- name: Stop all workflows if failed

0 commit comments

Comments
 (0)