-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (36 loc) · 1013 Bytes
/
codspeed.yml
File metadata and controls
45 lines (36 loc) · 1013 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
40
41
42
43
44
45
name: CodSpeed
on:
push:
branches:
- main
paths:
- "crates/tw_merge/**"
pull_request:
paths:
- "crates/tw_merge/**"
# Allows CodSpeed to trigger backtests to generate initial data
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmarks:
name: Run tw_merge benchmarks
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install cargo-codspeed
run: cargo install cargo-codspeed --locked
- name: Build benchmark targets
run: cargo codspeed build -p tw_merge
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
run: cargo codspeed run -p tw_merge
mode: simulation