feat(device-plugin): add nvidia-dev-root option for custom host path … #1113
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: Lint | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| cargo-fmt-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| cargo-clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install CUDA toolkit | |
| uses: Jimver/[email protected] | |
| with: | |
| sub-packages: '["nvcc", "cudart-dev"]' | |
| method: network | |
| - name: Install Protobuf Compiler (protoc) | |
| run: sudo apt-get install -y protobuf-compiler | |
| - name: Check clippy | |
| run: cargo clippy --locked --workspace --all-targets -- -D warnings |