Skip to content

Commit

Permalink
chore(ci): Use matrix for tracking the runner
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 12, 2024
1 parent 29b04fe commit 22944b4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/bench-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
push:
branches: master

env:
RUNNER: buildjet-8vcpu-ubuntu-2204

jobs:
bench:
name: Binary Size
runs-on: "${{ env.RUNNER}}"
strategy:
matrix:
build: [linux]
include:
- build: linux
os: buildjet-8vcpu-ubuntu-2204
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -33,7 +36,7 @@ jobs:
bencher run \
--project "${{ github.repository }}" \
--branch "${{ github.ref_name }}" \
--testbed "${{ env.RUNNER}}" \
--testbed "${{ matrix.os }}" \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--adapter json \
Expand Down

0 comments on commit 22944b4

Please sign in to comment.