fix: align runtime contracts with documented APIs #2
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, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| format-check: | |
| name: Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Check C/C++/CUDA formatting | |
| uses: jidicula/clang-format-action@v4.13.0 | |
| with: | |
| clang-format-version: '17' | |
| check-path: 'include src tests benchmarks examples' | |
| exclude-regex: '(^|/)(build|\.git)(/|$)' | |
| configure-cpu: | |
| name: Configure CPU Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Configure without CUDA | |
| run: cmake --preset cpu-smoke | |
| - name: Verify install rules | |
| run: cmake --install build/cpu-smoke --prefix "$RUNNER_TEMP/tensorcraft-install" | |
| python-package-smoke: | |
| name: Python Package Smoke Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install packaging dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install build scikit-build-core pybind11 | |
| - name: Build wheel without CUDA | |
| run: python -m build --wheel | |
| env: | |
| CMAKE_ARGS: >- | |
| -DTC_ENABLE_CUDA=OFF | |
| -DTC_BUILD_TESTS=OFF | |
| -DTC_BUILD_BENCHMARKS=OFF | |
| -DTC_BUILD_PYTHON=OFF | |
| - name: Verify wheel artifact exists | |
| run: | | |
| test -n "$(ls dist/*.whl)" |