Skip to content

Commit 0aa4b9a

Browse files
committed
feat: install codspeed
1 parent 8fd0337 commit 0aa4b9a

5 files changed

Lines changed: 183 additions & 119 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
runs-on: codspeed-macro
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup rust toolchain, cache and cargo-codspeed binary
20+
uses: moonrepo/setup-rust@v1
21+
with:
22+
cache-target: release
23+
bins: cargo-codspeed@2.8.0-alpha.1
24+
25+
- run: sudo apt install --yes --no-install-recommends libasound2-dev pkg-config
26+
27+
- name: Build the benchmark target(s)
28+
run: cargo codspeed build
29+
30+
- name: Run the benchmarks
31+
uses: CodSpeedHQ/action@v3
32+
with:
33+
run: cargo codspeed run

.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.

Cargo.lock

Lines changed: 149 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ rstest = "0.18.2"
6666
rstest_reuse = "0.6.0"
6767
approx = "0.5.1"
6868
dasp_sample = "0.11.0"
69-
divan = "0.1.14"
69+
divan = { package = "codspeed-divan-compat", version = "2.8.0-alpha.1" }
7070

7171
[[bench]]
7272
name = "effects"

0 commit comments

Comments
 (0)