diff --git a/.github/workflows/rust_checks.yml b/.github/workflows/rust_checks.yml index d83d99be4..6f78a1d14 100644 --- a/.github/workflows/rust_checks.yml +++ b/.github/workflows/rust_checks.yml @@ -18,6 +18,9 @@ jobs: clippy-stable: runs-on: ubuntu-latest + strategy: + matrix: + features: ["", "--no-default-features"] steps: - uses: actions/checkout@v3 - uses: ./.github/actions/rust-toolchain@stable @@ -27,7 +30,7 @@ jobs: run: | sudo apt install gettext - name: cargo clippy - run: cargo clippy --workspace --all-targets -- --deny=warnings + run: cargo clippy --workspace --all-targets ${{ matrix.features }} -- --deny=warnings clippy-msrv: runs-on: ubuntu-latest diff --git a/build_tools/check.sh b/build_tools/check.sh index 3bee699d8..329f49110 100755 --- a/build_tools/check.sh +++ b/build_tools/check.sh @@ -41,7 +41,9 @@ template_file=$(mktemp) FISH_GETTEXT_EXTRACTION_FILE=$template_file cargo build --workspace --all-targets --features=gettext-extract if $lint; then PATH="$build_dir:$PATH" "$repo_root/build_tools/style.fish" --all --check - cargo clippy --workspace --all-targets + for features in "" --no-default-features; do + cargo clippy --workspace --all-targets $features + done fi cargo test --no-default-features --workspace --all-targets cargo test --doc --workspace