File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments