-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.15 KB
/
Copy pathbenchmarks.yml
File metadata and controls
50 lines (44 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
49
50
name: Benchmark Smoke
on:
push:
branches: [ main, master ]
paths:
- 'include/**'
- 'src/**'
- 'benchmarks/**'
- 'cmake/packages/google-benchmark.cmake'
- 'CMakeLists.txt'
- '.github/workflows/benchmarks.yml'
pull_request:
branches: [ main, master ]
paths:
- 'include/**'
- 'src/**'
- 'benchmarks/**'
- 'cmake/packages/google-benchmark.cmake'
- 'CMakeLists.txt'
- '.github/workflows/benchmarks.yml'
jobs:
benchmark-smoke:
name: Benchmark Smoke (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure Release Benchmarks
shell: bash
run: |
cmake -B build-bench \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCPP_REQUEST_BUILD_BENCHMARKS=ON
- name: Build and Smoke Benchmarks
shell: bash
run: |
cmake --build build-bench \
--config Release \
--target cpp_request_benchmark_smoke