mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
checks: run with all features enabled
As discussed in #12649, we should check builds with all Cargo features enabled. Previously, this did cause issues with the `benchmark` feature, since that only works with nightly Rust. #12653 resolves that by only enabling the `benchmark` feature with the nightly toolchain, so now we can use `--all-features` with stable Rust. Closes #12657
This commit is contained in:
committed by
Johannes Altmanninger
parent
0dfe06f4c9
commit
ca2b5dc40b
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -32,6 +32,8 @@ jobs:
|
||||
features: ""
|
||||
- rust_version: "stable"
|
||||
features: "--no-default-features"
|
||||
- rust_version: "stable"
|
||||
features: "--all-features"
|
||||
- rust_version: "msrv"
|
||||
features: ""
|
||||
steps:
|
||||
|
||||
@@ -99,7 +99,7 @@ if $lint; then
|
||||
cargo deny --all-features --locked --exclude-dev check licenses
|
||||
fi
|
||||
PATH="$build_dir:$PATH" cargo xtask format --all --check
|
||||
for features in "" --no-default-features; do
|
||||
for features in "" --no-default-features --all-features; do
|
||||
cargo clippy --workspace --all-targets $features
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user