Clarify int8 vs float32 under MCU, MPU, and CPU peer tables. #186
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: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Install Clang | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: python/pyproject.toml | |
| - name: Install Python dependencies | |
| run: pip install -e "python[train]" | |
| - name: Build | |
| run: make | |
| - name: Run C++, C API, and Python tests | |
| env: | |
| GITHUB_ACTIONS: true | |
| run: make rebuild test | |
| - name: CMake configure and build | |
| run: | | |
| cmake -B cmake-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ | |
| -DNETKIT_CMSIS_NN=OFF -DNETKIT_XNNPACK=OFF | |
| cmake --build cmake-build | |
| ./cmake-build/netkit test | |
| - name: Build and run C++ example | |
| run: | | |
| make example-cpp | |
| ./examples/infer_cpp models/test_mlp.nk 1 2 | |
| - name: Build and run C example | |
| run: | | |
| make example-c | |
| ./examples/infer_c models/test_mlp.nk 1 2 | |
| - name: CLI smoke test | |
| run: | | |
| make netkit | |
| ./netkit run models/test_mlp.nk --input 1,2 | |
| ./netkit inspect models/test_mlp.nk | |
| ./netkit inspect models/mnist_cnn.nk --full || true |