Skip to content

Commit 6175d44

Browse files
committed
feat: install codspeed
1 parent 8fd0337 commit 6175d44

5 files changed

Lines changed: 188 additions & 119 deletions

File tree

.github/workflows/benchmark.yml

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

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