-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.6 KB
/
Copy pathci.yml
File metadata and controls
54 lines (44 loc) · 1.6 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
51
52
53
54
# Synthetic-only CI: builds the project and runs the smoke test on every push
# and pull request.
#
# This workflow never downloads Nasdaq market data and never runs benchmarks.
# The bench_smoke target is compiled to prove the benchmark infrastructure
# builds, but it is not executed and its output is never recorded.
name: CI
on:
push:
pull_request:
jobs:
build-and-test:
name: ${{ matrix.preset }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
preset: [debug, asan-ubsan, release]
steps:
- uses: actions/checkout@v4
- name: Install Ninja
run: sudo apt-get update && sudo apt-get install -y ninja-build
# Older ASan runtimes reject the high mmap randomization entropy on
# recent Ubuntu kernels; pin it to a value ASan accepts.
- name: Lower ASLR entropy for ASan
if: matrix.preset == 'asan-ubsan'
run: sudo sysctl -w vm.mmap_rnd_bits=28
- name: Configure
run: cmake --preset ${{ matrix.preset }}
- name: Build
run: cmake --build --preset ${{ matrix.preset }}
- name: Test
run: ctest --preset ${{ matrix.preset }}
documentation:
name: documentation
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# Standard library only, synthetic only, no build and no market data:
# this validates links, generated artifacts, and every numeric claim in
# the README against the committed JSON and CSV (docs/decisions.md
# D-077).
- name: Validate documentation and generated artifacts
run: python3 scripts/check_docs.py