This repository was archived by the owner on Jul 28, 2026. It is now read-only.
v0.1.1: fix test_core — assert uppercase source_id is rejected #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| host-tests: | |
| name: Host Tests (ASan + UBSan) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build tests | |
| run: | | |
| cmake -B build-test tests/ | |
| cmake --build build-test/ | |
| - name: Run tests | |
| run: ctest --test-dir build-test --output-on-failure | |
| host-tests-minimal: | |
| name: Host Tests (Minimal Config) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build tests (minimal config ~1.5KB) | |
| run: | | |
| cmake -B build-test-min tests/ -DPLEXUS_MINIMAL_CONFIG=ON | |
| cmake --build build-test-min/ | |
| - name: Run tests (minimal) | |
| run: ctest --test-dir build-test-min --output-on-failure | |
| version-check: | |
| name: Version sync | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check version consistency | |
| run: | | |
| HEADER_VERSION=$(grep -oP 'PLEXUS_SDK_VERSION\s+"\K[^"]+' src/plexus.h) | |
| CMAKE_VERSION=$(grep -oP 'VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' CMakeLists.txt | head -1) | |
| JSON_VERSION=$(python3 -c "import json; print(json.load(open('library.json'))['version'])") | |
| PROPS_VERSION=$(grep -oP '^version=\K.*' library.properties) | |
| echo "src/plexus.h: $HEADER_VERSION" | |
| echo "CMakeLists.txt: $CMAKE_VERSION" | |
| echo "library.json: $JSON_VERSION" | |
| echo "library.properties: $PROPS_VERSION" | |
| MISMATCH=0 | |
| for v in "$CMAKE_VERSION" "$JSON_VERSION" "$PROPS_VERSION"; do | |
| if [ "$v" != "$HEADER_VERSION" ]; then | |
| MISMATCH=1 | |
| fi | |
| done | |
| if [ "$MISMATCH" -eq 1 ]; then | |
| echo "::error::Version mismatch across files! All must match src/plexus.h ($HEADER_VERSION)" | |
| exit 1 | |
| fi | |
| echo "All versions match: $HEADER_VERSION" |