|
|
|
|
@ -18,16 +18,20 @@ jobs:
|
|
|
|
|
override: true
|
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
- name: Check code format
|
|
|
|
|
run: cd code
|
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
|
with:
|
|
|
|
|
command: fmt
|
|
|
|
|
args: --all -- --check
|
|
|
|
|
run: |
|
|
|
|
|
cd code
|
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
|
# uses: actions-rs/cargo@v1
|
|
|
|
|
# with:
|
|
|
|
|
# command: fmt
|
|
|
|
|
# args: --all -- --check
|
|
|
|
|
- name: Clippy
|
|
|
|
|
run: cd code
|
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
|
with:
|
|
|
|
|
command: clippy
|
|
|
|
|
run: |
|
|
|
|
|
cd code
|
|
|
|
|
cargo clippy
|
|
|
|
|
# uses: actions-rs/cargo@v1
|
|
|
|
|
# with:
|
|
|
|
|
# command: clippy
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
strategy:
|
|
|
|
|
|