fix(resctrl): address early exhaustion #34
Workflow file for this run
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: rust-lints | |
| on: | |
| workflow_dispatch: # Manual trigger for testing | |
| pull_request: | |
| paths: | |
| - 'crates/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/rust-lints.yaml' | |
| push: | |
| # Run on any branch push, filtered to Rust workspace changes | |
| paths: | |
| - 'crates/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/rust-lints.yaml' | |
| jobs: | |
| lint: | |
| name: Clippy and fmt (workspace) | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust (stable) with components | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Install system dependencies | |
| uses: awalsh128/cache-apt-pkgs-action@v1 | |
| with: | |
| packages: clang libelf-dev pkg-config zlib1g-dev | |
| version: 1.0 | |
| - name: Cache cargo and target | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy (deny warnings) | |
| run: | | |
| cargo clippy --workspace --all-features --all-targets --locked -- -D warnings |