Skip to content

Commit 22944b4

Browse files
committed
chore(ci): Use matrix for tracking the runner
1 parent 29b04fe commit 22944b4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/bench-baseline.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
push:
88
branches: master
99

10-
env:
11-
RUNNER: buildjet-8vcpu-ubuntu-2204
12-
1310
jobs:
1411
bench:
1512
name: Binary Size
16-
runs-on: "${{ env.RUNNER}}"
13+
strategy:
14+
matrix:
15+
build: [linux]
16+
include:
17+
- build: linux
18+
os: buildjet-8vcpu-ubuntu-2204
19+
runs-on: "${{ matrix.os }}"
1720
steps:
1821
- name: Checkout repository
1922
uses: actions/checkout@v4
@@ -33,7 +36,7 @@ jobs:
3336
bencher run \
3437
--project "${{ github.repository }}" \
3538
--branch "${{ github.ref_name }}" \
36-
--testbed "${{ env.RUNNER}}" \
39+
--testbed "${{ matrix.os }}" \
3740
--token '${{ secrets.BENCHER_API_TOKEN }}' \
3841
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
3942
--adapter json \

0 commit comments

Comments
 (0)