From 46596e4e048af9de650a0e1e27b4e6d01df46e48 Mon Sep 17 00:00:00 2001 From: TheVeryDarkness <3266343194@qq.com> Date: Thu, 10 Oct 2024 20:58:06 +0800 Subject: [PATCH] Perform benchmarks on different platforms. --- .github/workflows/benchmark.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 64636c2..210521d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -11,7 +11,10 @@ permissions: jobs: benchmark: name: Run Criterion.rs benchmark example - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -29,7 +32,7 @@ jobs: --project iof \ --token '${{ secrets.BENCHER_API_TOKEN }}' \ --branch main \ - --testbed ubuntu-latest \ + --testbed ${{ matrix.os }} \ --threshold-measure latency \ --threshold-test t_test \ --threshold-max-sample-size 64 \