Skip to content

Commit e667c1e

Browse files
committed
gh-action: allow manual bench run with filer
1 parent f63c8d7 commit e667c1e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/bench.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches:
66
- "main"
7+
workflow_dispatch:
8+
inputs:
9+
filter:
10+
description: 'Optional filter for cargo bench (e.g., a specific benchmark name)'
11+
default: ''
12+
required: false
713

814
jobs:
915
benchmarks:
@@ -32,9 +38,9 @@ jobs:
3238
bencher run \
3339
--project cryprot \
3440
--token '${{ secrets.BENCHER_API_TOKEN }}' \
35-
--branch main \
41+
--branch '${{github.ref_name}}' \
3642
--testbed ubicloud-standard-4 \
3743
--threshold-measure latency \
3844
--threshold-test t_test \
3945
--threshold-upper-boundary 0.99 \
40-
'cargo bench'
46+
'cargo bench ${{ github.event.inputs.filter }}'

0 commit comments

Comments
 (0)