# Lint/test gate for the bonsaiviewer-autodesk crate — nothing here ships. # The connector binary that reaches users is built by the platform pipelines # (build_rocky.yml, build_rocky_arm.yml, build_win.yml, build_osx.yml), each # of which runs packaging/build.py itself and bundles dist/autodesk/ into the # Bonsai Viewer archive. name: Test Bonsai Viewer Autodesk Connector on: workflow_dispatch: push: paths: - 'src/bonsaiviewer-autodesk/**' - '.github/workflows/build-bonsaiviewer-autodesk.yml' pull_request: paths: - 'src/bonsaiviewer-autodesk/**' - '.github/workflows/build-bonsaiviewer-autodesk.yml' jobs: test: name: cargo-test runs-on: ubuntu-latest defaults: run: working-directory: src/bonsaiviewer-autodesk steps: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable # cargo-target reuse across runs. Massive cold-build speedup, # cheap on the GitHub Actions cache budget. - uses: Swatinem/rust-cache@v2 with: workspaces: src/bonsaiviewer-autodesk - name: cargo fmt --check run: cargo fmt --all -- --check - name: cargo clippy run: cargo clippy --all-targets --all-features -- -D warnings - name: cargo test run: cargo test --all-features