Skip to content

Commit e8ea2ba

Browse files
authored
Add concurrency support to benchmark workflow
1 parent c4c4793 commit e8ea2ba

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/bench-frontier.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
name: 'Benchmark Frontier Releases'
22

3+
concurrency:
4+
group: bench-frontier
5+
cancel-in-progress: false
6+
37
on:
8+
push:
9+
pull_request:
410
workflow_dispatch:
511
inputs:
612
tag:
713
description: 'tag to Benchmark'
814
required: true
915
default: 'v5.1.3'
10-
16+
1117
jobs:
1218
self:
1319
name: "${{ matrix.name }} (${{ matrix.device }}${{ matrix.interface != 'none' && format('-{0}', matrix.interface) || '' }})"
@@ -38,6 +44,7 @@ jobs:
3844
env:
3945
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
4046
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
47+
BENCH_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' ? github.event.inputs.tag: 'v5.1.3' }}
4148
steps:
4249
- name: Clone - PR
4350
uses: actions/checkout@v4
@@ -48,7 +55,7 @@ jobs:
4855
uses: actions/checkout@v4
4956
with:
5057
repository: MFlowCode/MFC
51-
ref: ${{ github.event.inputs.tag }}
58+
ref: ${{ env.BENCH_TAG }}
5259
path: master
5360

5461
- name: Checkout PR repo
@@ -114,15 +121,13 @@ jobs:
114121
endif()
115122
endif()
116123
EOF
117-
docker buildx create --name mfcbuilder --driver docker-container --use
118124
119125
- name: Setup & Build
120-
if: matrix.build_script != ''
121-
run: |
126+
run: |
122127
(cd master && ${{ matrix.build_script }}) &
123128
wait %1
124129
125-
- name: Bench (Master v. PR)
130+
- name: Bench (Master)
126131
run: bash master/.github/scripts/run_parallel_benchmarks.sh ${{ matrix.device }} ${{ matrix.cluster }}
127132

128133
- name: Print Logs

0 commit comments

Comments
 (0)