Skip to content

Commit 6a39133

Browse files
committed
ci: add clippy-msrv-ci alias
This commit adds a variation of the existing `clippy-ci` alias that only tests the `--lib` target. This is intended to be used when linting with the MSRV, where we don't want dev dependencies and other non-essential code being linted with the MSRV toolchain.
1 parent 5edaaf4 commit 6a39133

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[alias]
22
clippy-ci = "clippy --all-features --all-targets --all"
3+
clippy-msrv-ci = "clippy --all-features --lib --all" # Only check --lib target w/ MSRV toolchain.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ jobs:
7979
rustup target add aarch64-linux-android
8080
8181
- name: Clippy (${{ matrix.os }})
82-
run: cargo clippy-ci
82+
run: cargo clippy-msrv-ci
8383

8484
- name: Clippy (Android)
8585
if: matrix.os == 'ubuntu-latest'
8686
run: |
87-
cargo ndk -t arm64-v8a clippy-ci
87+
cargo ndk -t arm64-v8a clippy-msrv-ci
8888
8989
- name: Clippy (iOS)
9090
if: matrix.os == 'macos-latest'
9191
run: |
9292
rustup target add x86_64-apple-ios
93-
cargo clippy-ci --target x86_64-apple-ios
93+
cargo clippy-msrv-ci --target x86_64-apple-ios
9494
9595
# TODO: Consider WASM. See note on "clippy" job.
9696

0 commit comments

Comments
 (0)