From c481f19fa7785271da96e1df44d81e5604d803a1 Mon Sep 17 00:00:00 2001 From: howardwu Date: Mon, 1 Feb 2021 20:15:57 -0800 Subject: [PATCH] Update clippy logic --- .github/workflows/ci.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab07ada1dc..5438f6d441 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,21 +39,15 @@ jobs: runs-on: ubuntu-latest env: RUSTFLAGS: -Dwarnings - strategy: - matrix: - rust: - - stable -# - nightly - steps: - name: Checkout uses: actions/checkout@v2 - - name: Install Rust (${{ matrix.rust }}) + - name: Install Rust uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: stable override: true components: clippy @@ -68,14 +62,12 @@ jobs: with: command: clippy args: --examples --all-features --all - if: matrix.rust == 'stable' -# - name: Check benchmarks on nightly -# uses: actions-rs/cargo@v1 -# with: -# command: clippy -# args: --all-features --examples --all --benches -# if: matrix.rust == 'nightly' + - name: Check benchmarks on nightly + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-features --examples --all --benches test: name: Test