Add clippy features matrix
Run clippy on all available feature combos.
This commit is contained in:
parent
201cf1e4af
commit
9f06e2f1a5
|
@ -112,6 +112,14 @@ jobs:
|
|||
|
||||
clippy:
|
||||
name: "Clippy"
|
||||
strategy:
|
||||
matrix:
|
||||
features: [
|
||||
"",
|
||||
"noserial",
|
||||
"qemu",
|
||||
"noserial,qemu",
|
||||
]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
|
@ -119,4 +127,4 @@ jobs:
|
|||
- run: rustup toolchain install nightly --profile minimal --component clippy
|
||||
- run: rustup component add rust-src llvm-tools-preview
|
||||
- run: cargo install cargo-make
|
||||
- run: cargo make clippy
|
||||
- run: env CLIPPY_FEATURES=${{ matrix.features }} cargo make clippy
|
||||
|
|
|
@ -68,8 +68,9 @@ command = "diskutil"
|
|||
args = ["unmount", "/Volumes/BOOT/"]
|
||||
|
||||
[tasks.clippy]
|
||||
env = { "TARGET_FEATURES" = { value = "--features=${CLIPPY_FEATURES}", condition = { env_set = ["CLIPPY_FEATURES"] } } }
|
||||
command = "cargo"
|
||||
args = ["clippy", "${BUILD_STD}", "--target=${TARGET_JSON}", "--", "-D", "warnings"]
|
||||
args = ["clippy", "${BUILD_STD}", "--target=${TARGET_JSON}", "@@remove-empty(TARGET_FEATURES)", "--", "-D", "warnings"]
|
||||
|
||||
[tasks.hopper]
|
||||
dependencies = ["build", "kernel-binary"]
|
||||
|
|
Loading…
Reference in New Issue