Skip to content

Commit 4cfe211

Browse files
committed
Add codspeed run action
1 parent d481d38 commit 4cfe211

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/codspeed.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- "develop"
7+
- "codspeed"
8+
# Run on pull requests
9+
pull_request:
10+
# `workflow_dispatch` allows CodSpeed to trigger backtest
11+
# performance analysis in order to generate initial data.
12+
workflow_dispatch:
13+
14+
jobs:
15+
benchmarks:
16+
name: Run benchmarks
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
with:
24+
toolchain: ${{ matrix.toolchain }}
25+
26+
- name: Run benchmarks
27+
uses: CodSpeedHQ/action@v3
28+
with:
29+
token: ${{ secrets.CODSPEED_TOKEN }}
30+
run: "cargo bench"

0 commit comments

Comments
 (0)