Skip to content

Commit 990c266

Browse files
committed
update the codspeed github action
1 parent 737252a commit 990c266

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: codspeed-benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
# `workflow_dispatch` allows CodSpeed to trigger backtest
9+
# performance analysis in order to generate initial data.
10+
workflow_dispatch:
11+
12+
jobs:
13+
benchmarks:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup rust toolchain, cache and cargo-codspeed binary
19+
uses: moonrepo/setup-rust@v0
20+
with:
21+
channel: stable
22+
cache-target: release
23+
bins: cargo-codspeed
24+
25+
- name: Build the benchmark target(s)
26+
run: cargo codspeed build -p benchmarks
27+
28+
- name: Run the benchmarks
29+
uses: CodSpeedHQ/action@v3
30+
with:
31+
run: cargo codspeed run -p benchmarks
32+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)