-
-
Notifications
You must be signed in to change notification settings - Fork 21
44 lines (37 loc) · 1.02 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Benchmark
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- "src/*.rs"
- "Cargo.lock"
push:
branches:
- main
paths:
- "src/*.rs"
- "Cargo.lock"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1
- uses: Boshen/setup-rust@main
with:
cache-key: benchmark
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed
- uses: ./.github/actions/pnpm
- run: cargo codspeed build --features codspeed
env:
RUSTFLAGS: "-C debuginfo=1 -C strip=none"
- uses: CodSpeedHQ/action@513a19673a831f139e8717bf45ead67e47f00044 # v3
timeout-minutes: 30
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}