-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.02 KB
/
codspeed.yml
File metadata and controls
42 lines (37 loc) · 1.02 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
name: CodSpeed Benchmarks
on:
push:
branches:
- "main"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
name: Run all benchmarks
strategy:
matrix:
include:
- runs-on: ubuntu-latest
mode: instrumentation
- runs-on: codspeed-macro
mode: walltime
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Install build tools and dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake g++
- name: Build the benchmark target
run: |
mkdir build
cd build
cmake -DCODSPEED_MODE=${{ matrix.mode }} ..
cmake --build . -j
- name: Run all benchmarks with CodSpeed
uses: CodSpeedHQ/action@v3
with:
run: cd build && make run_all_benchmarks
token: ${{ secrets.CODSPEED_TOKEN }}