From 4d0451d67562af3c9fc738bfd59c1e1fd9c8df06 Mon Sep 17 00:00:00 2001 From: Sunli Date: Thu, 1 Sep 2022 23:20:53 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84a0c063..57b31ebc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,9 @@ jobs: components: rustfmt - name: Check format run: cargo +${{ matrix.rust }} fmt --all -- --check + - name: Check examples format + working-directory: ./examples + run: cargo +${{ matrix.rust }} fmt --all -- --check clippy: name: Run clippy - Rust (${{ matrix.rust }}) on ${{ matrix.os }} @@ -141,16 +144,6 @@ jobs: uses: actions/checkout@v2 with: submodules: true - - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - components: clippy, rustfmt - - name: Check examples format - run: cargo +${{ matrix.rust }} fmt --all -- --check - working-directory: ./examples - - uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.rust }}