Skip to content

Commit 34cc5d1

Browse files
committed
feat: install codspeed
1 parent 8fd0337 commit 34cc5d1

5 files changed

Lines changed: 202 additions & 120 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}

.github/workflows/ci.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)