ci: run clippy before building [skip ci]

This commit is contained in:
oSumAtrIX 2023-07-06 22:18:03 +02:00
parent cc83a390df
commit a1fcd9c0bc
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -38,6 +38,12 @@ jobs:
with: with:
cache-on-failure: "true" cache-on-failure: "true"
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-deps -- -D warnings
- name: cargo build - name: cargo build
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -45,12 +51,6 @@ jobs:
args: --release --target=x86_64-unknown-linux-musl args: --release --target=x86_64-unknown-linux-musl
use-cross: true use-cross: true
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-deps -- -D warnings
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: