docs(api): refresh API reference (signatures, return semantics, examp… #11
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: [dev, main] | |
| pull_request: | |
| branches: [dev, main] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build \ | |
| git \ | |
| pkg-config \ | |
| libi2c-dev \ | |
| libudev-dev | |
| - name: Build and install linux-wire | |
| run: | | |
| git clone --depth=1 https://github.com/FEASTorg/linux-wire.git third_party/linux-wire | |
| cmake -S third_party/linux-wire -B third_party/linux-wire/build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/third_party/linux-wire/install | |
| cmake --build third_party/linux-wire/build --parallel | |
| cmake --install third_party/linux-wire/build | |
| - name: Configure CRUMBS | |
| env: | |
| CMAKE_PREFIX_PATH: ${{ github.workspace }}/third_party/linux-wire/install | |
| run: | | |
| cmake -S . -B build \ | |
| -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCRUMBS_ENABLE_TESTS=ON \ | |
| -DCRUMBS_ENABLE_LINUX_HAL=ON \ | |
| -DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" | |
| - name: Build CRUMBS | |
| run: cmake --build build --parallel | |
| - name: Run CRUMBS tests | |
| run: ctest --test-dir build --output-on-failure |