Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(resctrl): address early exhaustion #34

fix(resctrl): address early exhaustion

fix(resctrl): address early exhaustion #34

Workflow file for this run

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