hive-gpu 0.2.0

High-performance GPU acceleration for vector operations with Device Info API (Metal, CUDA, ROCm)
Documentation
name: Rust Lint

on:
  push:
    branches: [ master, main, develop ]
  pull_request:
    branches: [ '**' ]

env:
  CARGO_TERM_COLOR: always

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
    - name: Install minimal nightly (for fmt)
      uses: dtolnay/rust-toolchain@nightly
      with:
        components: rustfmt
    
    - name: Install minimal stable
      uses: dtolnay/rust-toolchain@stable
      with:
        components: rustfmt, clippy
    
    - uses: actions/checkout@v5
    
    - uses: Swatinem/rust-cache@v2
      with:
        key: clippy
    
    - name: Check code formatting
      run: cargo +nightly fmt --all -- --check
    
    - name: Check cargo clippy warnings (default features)
      run: cargo clippy --workspace -- -D warnings

    - name: Check cargo clippy warnings for all targets (default features)
      run: cargo clippy --workspace --all-targets -- -D warnings

    # cuda feature needs the CUDA toolkit (cuda.h) at build time; that
    # combination is covered by the dedicated `CUDA Build` workflow.
    # Everything else — rocm (libloading only) and intel (ash + naga, both
    # pure Rust) — builds cleanly on a stock ubuntu runner.
    - name: Check cargo clippy for rocm + intel feature set
      run: cargo clippy --workspace --all-targets --features rocm,intel -- -D warnings