-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.15 KB
/
benchmark.yml
File metadata and controls
48 lines (41 loc) · 1.15 KB
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
45
46
47
48
name: Benchmark
permissions: {}
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- "**/*.rs"
- "Cargo.lock"
- ".github/workflows/benchmark.yml"
push:
branches:
- main
paths:
- "**/*.rs"
- "Cargo.lock"
- ".github/workflows/benchmark.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
with:
cache-key: benchmark
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed
- name: Build benchmark
run: cargo codspeed build --features codspeed
- name: Run benchmark
uses: CodSpeedHQ/action@658a901452bb54c799643e060733b7afe9121b8d # v4.14.0
timeout-minutes: 15
with:
mode: simulation
run: cargo codspeed run