ci: add `cargo check --release` to lint stage
MODIFY
.github/workflows/main.yml
.github/workflows/main.yml
@@ -39,6 +39,11 @@ jobs:
run: rustup show
- name: Cache
uses: Swatinem/rust-cache@v1
+ - name: Run cargo check
+ uses: actions-rs/cargo@v1
+ with:
+ command: check
+ args: --workspace --all-targets --release
- name: Run clippy
uses: actions-rs/cargo@v1
with:

MODIFY
.github/workflows/pull_request.yml
.github/workflows/pull_request.yml
@@ -37,6 +37,11 @@ jobs:
run: rustup show
- name: Cache
uses: Swatinem/rust-cache@v1
+ - name: Run cargo check
+ uses: actions-rs/cargo@v1
+ with:
+ command: check
+ args: --workspace --all-targets --release
- name: Run clippy
uses: actions-rs/cargo@v1
with:

ci: add `cargo check --release` to lint stage (#1959)