-
-
Notifications
You must be signed in to change notification settings - Fork 118
39 lines (31 loc) · 856 Bytes
/
codspeed.yml
File metadata and controls
39 lines (31 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Benchmarks
on:
push:
branches:
- "master"
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
runs-on: ubuntu-24.04
timeout-minutes: 30
strategy:
matrix:
package: [jsonschema, referencing]
name: "Run benchmarks (${{ matrix.package }})"
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.package }}
- run: cargo install cargo-codspeed --force
- run: cargo codspeed build -p ${{ matrix.package }}
- uses: CodSpeedHQ/action@v4
with:
run: cargo codspeed run -p ${{ matrix.package }}
mode: "instrumentation"
token: ${{ secrets.CODSPEED_TOKEN }}