Skip to content

Commit 7769ead

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

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ci/set_rust_version.bash

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
set -e
33
rustup default $1
44
rustup target add $2
5+
rustup component add clippy --toolchain $1 --target $2

ci/test.bash

+3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ libz-ng-sys = { path = "./libz-ng-sys" }
6464
EOF
6565

6666
set -x
67+
$CROSS clippy --features zlib --target $TARGET_TRIPLE
6768
$CROSS test --features zlib --target $TARGET_TRIPLE
6869
$CROSS test --features zlib-default --no-default-features --target $TARGET_TRIPLE
70+
$CROSS clippy --features zlib-default --no-default-features --target $TARGET_TRIPLE
6971
$CROSS test --features zlib-ng --no-default-features --target $TARGET_TRIPLE
72+
$CROSS clippy --features zlib-ng --no-default-features --target $TARGET_TRIPLE
7073
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE

0 commit comments

Comments
 (0)