name: CI 'on': push: branches: [master, crosspoint-ef] pull_request: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: submodules: recursive - name: Set up Python run: | # Use system Python on self-hosted runner python3 --version python3 -m pip install --upgrade pip - name: Install PlatformIO Core run: python3 -m pip install --upgrade platformio - name: Run cppcheck run: pio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high - name: Run clang-format run: | # Use system clang-format if available, skip if not if command -v clang-format &> /dev/null; then ./bin/clang-format-fix && git diff --exit-code || (echo "Please run 'bin/clang-format-fix' to fix formatting issues" && exit 1) else echo "clang-format not found, skipping format check" fi - name: Build CrossPoint run: pio run