Update ci.yml

This commit is contained in:
Sunli 2022-09-01 23:20:53 +08:00
parent 0ceb7804e3
commit 4d0451d675
1 changed files with 3 additions and 10 deletions

View File

@ -83,6 +83,9 @@ jobs:
components: rustfmt components: rustfmt
- name: Check format - name: Check format
run: cargo +${{ matrix.rust }} fmt --all -- --check run: cargo +${{ matrix.rust }} fmt --all -- --check
- name: Check examples format
working-directory: ./examples
run: cargo +${{ matrix.rust }} fmt --all -- --check
clippy: clippy:
name: Run clippy - Rust (${{ matrix.rust }}) on ${{ matrix.os }} name: Run clippy - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
@ -141,16 +144,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: true 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 - uses: actions-rs/toolchain@v1
with: with:
toolchain: ${{ matrix.rust }} toolchain: ${{ matrix.rust }}