Skip to content

Commit e26c472

Browse files
committed
First attempt at codspeed integration
1 parent ac38afc commit e26c472

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CodSpeed
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
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+
- name: Setup rust toolchain
20+
uses: moonrepo/setup-rust@v1
21+
with:
22+
channel: 1.87
23+
cache-target: release
24+
25+
- name: Install just
26+
uses: extractions/setup-just@v3
27+
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
with:
31+
submodules: true
32+
33+
- name: Run CI Setup
34+
run: just ci-setup
35+
36+
- name: Build the benchmark target(s)
37+
run: cargo codspeed build
38+
39+
- name: Run benchmarks
40+
uses: CodSpeedHQ/action@v3
41+
with:
42+
token: ${{ secrets.CODSPEED_TOKEN }}
43+
run: cargo codspeed run

0 commit comments

Comments
 (0)