Skip to content

Commit b08018f

Browse files
author
Gunter Schmidt
committed
try fixing benchmarks
1 parent cf8cdad commit b08018f

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/codspeed.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,19 @@ jobs:
1717
codspeed:
1818
name: Run benchmarks
1919
runs-on: ubuntu-latest
20+
env:
21+
CARGO_INCREMENTAL: 0
22+
strategy:
23+
matrix:
24+
type: [simulation, memory]
25+
package: [
26+
uu_cmp,
27+
uu_diff,
28+
]
2029
steps:
21-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
31+
with:
32+
persist-credentials: false
2233

2334
- name: Setup rust toolchain, cache and cargo-codspeed binary
2435
uses: moonrepo/setup-rust@v1
@@ -27,11 +38,20 @@ jobs:
2738
cache-target: release
2839
bins: cargo-codspeed
2940

30-
- name: Build the benchmark target(s)
31-
run: cargo codspeed build -m simulation
41+
- name: Build benchmarks for ${{ matrix.package }} (${{ matrix.type }})
42+
shell: bash
43+
run: |
44+
echo "Building ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
45+
cargo codspeed build -m ${{ matrix.type }} -p ${{ matrix.package }}
3246
33-
- name: Run the benchmarks
47+
- name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }}
3448
uses: CodSpeedHQ/action@v4
49+
env:
50+
CODSPEED_LOG: debug
3551
with:
36-
mode: simulation
37-
run: cargo codspeed run
52+
mode: ${{ matrix.type }}
53+
run: |
54+
echo "Running ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
55+
cargo codspeed run -p ${{ matrix.package }} > /dev/null
56+
token: ${{ secrets.CODSPEED_TOKEN }}
57+

0 commit comments

Comments
 (0)