File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : codspeed-benchmarks
2+
3+ on :
4+ # Run on pushes to the master branch
5+ push :
6+ branches :
7+ - " master"
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+ strategy :
17+ matrix :
18+ runs-on :
19+ - ubuntu-latest
20+ - codspeed-macro
21+ runs-on : ${{ matrix.runs-on }}
22+ steps :
23+ - uses : actions/checkout@v4
24+ - name : Setup rust toolchain, cache and cargo-codspeed binary
25+ uses : moonrepo/setup-rust@v1
26+ with :
27+ cache-target : release
28+ bins : cargo-codspeed@2.8.0-alpha.3
29+
30+ - run : sudo apt install --yes --no-install-recommends libasound2-dev pkg-config
31+
32+ - name : Build the benchmark target(s)
33+ run : cargo codspeed build
34+
35+ - name : Run the benchmarks
36+ uses : CodSpeedHQ/action@v3
37+ with :
38+ run : cargo codspeed run
39+ runner-version : 3.3.0
40+ token : ${{ secrets.CODSPEED_TOKEN }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments