ci: Run clippy once more without default features (#523)

With more and more features being added to `ash`, now seems to be the
right time to make sure the crate is clean of clippy warnings when
building without any features in addition to building with the deafult
set of features.
This commit is contained in:
Marijn Suijten 2021-12-27 11:43:12 +01:00 committed by GitHub
parent be6d767b03
commit 61d37734f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ jobs:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
override: true override: true
- run: rustup component add rustfmt components: rustfmt
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: fmt command: fmt
@ -92,12 +92,22 @@ jobs:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
override: true override: true
- run: rustup component add clippy components: clippy
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
name: Clippy lint without features
with: with:
command: clippy command: clippy
args: -p ash --no-default-features -- -D warnings # Only test the core ash and ash-window crate, where features reside.
# The examples crate would otherwise enable all default features again,
# making this test moot.
args: -p ash -p ash-window --no-default-features -- -D warnings
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
name: Clippy lint with all features
with: with:
command: clippy command: clippy
args: --workspace --all-targets --all-features -- -D warnings args: --workspace --all-targets --all-features -- -D warnings
- uses: actions-rs/cargo@v1
name: Clippy lint with default features
with:
command: clippy
args: --workspace --all-targets -- -D warnings