From 22944b4c3521562f78b6cf32cefc260cbed16798 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 12 Nov 2024 14:46:25 -0600 Subject: [PATCH] chore(ci): Use matrix for tracking the runner --- .github/workflows/bench-baseline.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bench-baseline.yml b/.github/workflows/bench-baseline.yml index 69f2a3baf1b..3ddae903281 100644 --- a/.github/workflows/bench-baseline.yml +++ b/.github/workflows/bench-baseline.yml @@ -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 @@ -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 \