From 61baae11140eea238f6fd5a90a70ca145cdf74c2 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Tue, 21 Jan 2025 21:32:00 -0500 Subject: [PATCH] try to fix clippy --- .github/workflows/check-rust.yml | 52 ++------------------------------ 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/.github/workflows/check-rust.yml b/.github/workflows/check-rust.yml index 3c9fc759b..f60450f5b 100644 --- a/.github/workflows/check-rust.yml +++ b/.github/workflows/check-rust.yml @@ -66,26 +66,6 @@ jobs: cargo-clippy-default-features: name: cargo clippy runs-on: SubtensorCI - strategy: - matrix: - rust-branch: - - stable - rust-target: - - x86_64-unknown-linux-gnu - # - x86_64-apple-darwin - os: - - ubuntu-latest - # - macos-latest - include: - - os: ubuntu-latest - # - os: macos-latest - env: - RELEASE_NAME: development - # RUSTFLAGS: -A warnings - RUST_BACKTRACE: full - SKIP_WASM_BUILD: 1 - TARGET: ${{ matrix.rust-target }} - RUST_BIN_DIR: target/${{ matrix.rust-target }} steps: - name: Check-out repository under $GITHUB_WORKSPACE uses: actions/checkout@v4 @@ -95,13 +75,8 @@ jobs: sudo apt-get update && sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - - name: Utilize Shared Rust Cache - uses: Swatinem/rust-cache@v2.2.1 - with: - key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} - - name: cargo clippy --workspace --all-targets -- -D warnings - run: cargo clippy --workspace --all-targets -- -D warnings + run: cargo clippy --version && cargo clippy --workspace --all-targets -- -D warnings cargo-check-lints: name: check custom lints @@ -153,24 +128,6 @@ jobs: cargo-clippy-all-features: name: cargo clippy --all-features runs-on: SubtensorCI - strategy: - matrix: - rust-target: - - x86_64-unknown-linux-gnu - # - x86_64-apple-darwin - os: - - ubuntu-latest - # - macos-latest - include: - - os: ubuntu-latest - # - os: macos-latest - env: - RELEASE_NAME: development - # RUSTFLAGS: -A warnings - RUST_BACKTRACE: full - RUST_BIN_DIR: target/${{ matrix.rust-target }} - SKIP_WASM_BUILD: 1 - TARGET: ${{ matrix.rust-target }} steps: - name: Check-out repository under $GITHUB_WORKSPACE uses: actions/checkout@v2 @@ -180,13 +137,8 @@ jobs: sudo apt-get update && sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler - - name: Utilize Shared Rust Cache - uses: Swatinem/rust-cache@v2.2.1 - with: - key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} - - name: cargo clippy --workspace --all-targets --all-features -- -D warnings - run: cargo clippy --workspace --all-targets --all-features -- -D warnings + run: cargo clippy --version && cargo clippy --workspace --all-targets --all-features -- -D warnings # runs cargo test --workspace cargo-test: