-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (30 loc) · 871 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (30 loc) · 871 Bytes
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
name: ${{ matrix.os }} / ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build build --parallel
- name: Run tests (ctest)
working-directory: build
run: ctest --output-on-failure
- name: Quick benchmarks
if: matrix.build_type == 'Release'
working-directory: build
run: |
./bin/bench_throughput || true
./bin/bench_latency --ops 200000 --warmup 20000 || true