Fix CI: cargo test --all ignored default-members, broke on ndi-io #6
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: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: fmt | |
| run: cargo fmt --all -- --check | |
| - name: clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: test | |
| # No --all/--workspace: that overrides [workspace] default-members | |
| # and would try to build ndi-io/omt-io too, which need real SDKs | |
| # (NDI SDK, libomt) that aren't installed on this runner. Plain | |
| # `cargo test` respects default-members and stays SRT-only. | |
| run: cargo test |