Skip to content

Commit b0c7231

Browse files
committed
bench: support alternate output_dir for watchman's OFAC benchmarks
1 parent f5c0005 commit b0c7231

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/bench.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
required: false
2424
type: boolean
2525
default: false
26+
output_dir:
27+
required: false
28+
type: string
2629
secrets:
2730
ssh_key:
2831
required: false
@@ -86,7 +89,7 @@ jobs:
8689
alert-comment-cc-users: '@adamdecaf'
8790
# Update files on master branch
8891
gh-pages-branch: master
89-
benchmark-data-dir-path: "docs/bench/${{inputs.name}}/"
92+
benchmark-data-dir-path: "docs/bench/${{ inputs.output_dir != '' && inputs.output_dir || inputs.name }}/"
9093

9194
- name: Logs
9295
if: ${{ failure() }}

.github/workflows/watchman.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# "The workflow must contain at least one job with no dependencies."
1717
- run: date
1818

19-
benchmark:
19+
benchmark-common:
2020
uses: moov-io/benchmarks/.github/workflows/bench.yml@master
2121
secrets: inherit
2222
with:
@@ -36,10 +36,11 @@ jobs:
3636
uses: moov-io/benchmarks/.github/workflows/bench.yml@master
3737
secrets: inherit
3838
with:
39-
name: watchman-ofac
39+
name: watchman
4040
setup: |
4141
sudo apt-get update
4242
sudo apt-get install -y libgl1-mesa-dev and xorg-dev
43+
output_dir: "watchman-ofac" # intead of watchman
4344
command: |
4445
go test ./pkg/ofac/... -short -bench Benchmark -run Benchmark -benchmem > output.txt
4546

0 commit comments

Comments
 (0)