Skip to content

Commit 6590b1b

Browse files
authored
Remove matrix.os from benchmark (#9735)
1 parent e234120 commit 6590b1b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
os: [
35-
"ubuntu-latest",
36-
]
3734
python-version: [
3835
# NB: Codspeed doesn't seem to support multiple runs of the same benchmark:
3936
# > At least one benchmark was run multiple times in your benchmarking workflow.
@@ -42,8 +39,8 @@ jobs:
4239
"3.14",
4340
]
4441

45-
runs-on: ${{ matrix.os }}
46-
name: Benchmark ${{ matrix.os }} Python ${{ matrix.python-version }}
42+
runs-on: ubuntu-latest
43+
name: Benchmark Python ${{ matrix.python-version }}
4744

4845
steps:
4946
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -61,31 +58,27 @@ jobs:
6158
"pyproject.toml"
6259
6360
- name: Cache libavif
64-
if: startsWith(matrix.os, 'ubuntu')
6561
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
6662
id: cache-libavif
6763
with:
6864
path: ~/cache-libavif
6965
key: ${{ runner.os }}-libavif-${{ hashFiles('depends/install_libavif.sh') }}
7066

7167
- name: Cache libimagequant
72-
if: startsWith(matrix.os, 'ubuntu')
7368
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
7469
id: cache-libimagequant
7570
with:
7671
path: ~/cache-libimagequant
7772
key: ${{ runner.os }}-libimagequant-${{ hashFiles('depends/install_imagequant.sh') }}
7873

7974
- name: Cache libwebp
80-
if: startsWith(matrix.os, 'ubuntu')
8175
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8276
id: cache-libwebp
8377
with:
8478
path: ~/cache-libwebp
8579
key: ${{ runner.os }}-libwebp-${{ hashFiles('depends/install_webp.sh') }}
8680

8781
- name: Install Linux dependencies
88-
if: startsWith(matrix.os, 'ubuntu')
8982
run: |
9083
.ci/install.sh
9184
env:
@@ -96,7 +89,6 @@ jobs:
9689

9790
- name: Run CodSpeed benchmarks
9891
uses: CodSpeedHQ/action@a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f # v4.18.1
99-
if: ${{ matrix.os == 'ubuntu-latest' }}
10092
with:
10193
mode: simulation
10294
run: |

0 commit comments

Comments
 (0)