update ci file

This commit is contained in:
Rohan Sircar 2021-04-21 13:41:02 +05:30
parent e1c4bb8fc7
commit 727207778b

View File

@ -23,6 +23,9 @@ jobs:
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1.2.0
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
@ -41,6 +44,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1.2.0
- name: Run cargo test
uses: actions-rs/cargo@v1
@ -61,6 +66,8 @@ jobs:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v1.2.0
- name: Run cargo fmt
uses: actions-rs/cargo@v1
@ -70,6 +77,7 @@ jobs:
- name: Run cargo clippy
uses: actions-rs/cargo@v1
continue-on-error: true
with:
command: clippy
args: -- -D warnings
@ -91,6 +99,8 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1.2.0
- uses: actions-rs/cargo@v1
with:
use-cross: true