Skip to content

Commit 287e7de

Browse files
committed
Add benchmark workflow again
1 parent e6e2717 commit 287e7de

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/benchmark.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Benchmarks
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
COLUMNS: 120
12+
13+
jobs:
14+
benchmarks:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup rust toolchain, cache and cargo-codspeed binary
19+
uses: moonrepo/setup-rust@v1
20+
with:
21+
channel: stable
22+
cache-target: release
23+
bins: cargo-codspeed
24+
- name: Build the benchmark target(s)
25+
run: cargo codspeed build
26+
- name: Run the benchmarks
27+
uses: CodSpeedHQ/action@v2
28+
with:
29+
run: cargo codspeed run
30+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)