-
Notifications
You must be signed in to change notification settings - Fork 71
44 lines (38 loc) · 965 Bytes
/
codspeed.yml
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
40
41
42
43
44
name: CodSpeed Benchmarks
on:
push:
branches:
- main
pull_request:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-stable-${{ hashFiles('Cargo.toml') }}
- uses: actions-rs/toolchain@v1
name: Install Rust toolchain
with:
profile: minimal
toolchain: stable
override: true
- uses: baptiste0928/cargo-install@v1
name: Install cargo-codspeed (with cache)
with:
crate: cargo-codspeed
- uses: actions-rs/cargo@v1
name: Build benchmarks
with:
command: codspeed
args: build
- uses: CodSpeedHQ/action@v1
name: Run benchmarks
with:
run: cargo codspeed run