Skip to content

Commit ded5b1e

Browse files
committed
add cargo clippy runs to see if it can build successfully (#143)
1 parent 31867f2 commit ded5b1e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ci/set_rust_version.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
set -e
33
rustup default $1
4-
rustup target add $2
4+
rustup target add $2

ci/test.bash

+7-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,10 @@ set -x
6767
$CROSS test --features zlib --target $TARGET_TRIPLE
6868
$CROSS test --features zlib-default --no-default-features --target $TARGET_TRIPLE
6969
$CROSS test --features zlib-ng --no-default-features --target $TARGET_TRIPLE
70-
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE
70+
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE
71+
72+
if command -v cargo-clippy &>/dev/null; then
73+
$CROSS clippy --features zlib-ng --no-default-features --target $TARGET_TRIPLE
74+
$CROSS clippy --features zlib --target $TARGET_TRIPLE
75+
$CROSS clippy --features zlib-default --no-default-features --target $TARGET_TRIPLE
76+
fi

0 commit comments

Comments
 (0)