Skip to content

Commit d8e8be8

Browse files
committed
Add CI workflow for SIL build and tests
1 parent fd6d8a4 commit d8e8be8

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up build toolchain
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y --no-install-recommends build-essential cmake
19+
20+
- name: Configure SIL tests
21+
run: cmake -S tests/sil -B build
22+
23+
- name: Build SIL tests
24+
run: cmake --build build
25+
26+
- name: Run SIL tests
27+
run: ctest --test-dir build --output-on-failure

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,27 @@ Typical flow:
218218
219219
---
220220

221+
## Continuous Integration
222+
223+
CI provides a fast, deterministic check for build correctness and core simulation invariants.
224+
225+
**What CI checks**
226+
- Configures and builds the SIL test harness (CMake).
227+
- Runs the SIL fault-injection smoke tests to validate deterministic safety behavior.
228+
229+
**What CI intentionally does not check**
230+
- Hardware-in-the-loop (HIL) or physical testbed validation.
231+
- Integration tests that depend on external infrastructure or network services.
232+
233+
**Reproduce CI locally**
234+
```bash
235+
cmake -S tests/sil -B build
236+
cmake --build build
237+
ctest --test-dir build --output-on-failure
238+
```
239+
240+
---
241+
221242
## Operational flow (how it behaves)
222243

223244
1. **Snapshot** current state (Ψ) and derived informational health state (Φ)

0 commit comments

Comments
 (0)