Skip to content

Commit

Permalink
add cargo clippy runs to see if it can build successfully (rust-lang#143
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Byron committed Jul 25, 2023
1 parent 31867f2 commit 756dc3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/set_rust_version.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e
rustup default $1
rustup target add $2
rustup target add $2
8 changes: 7 additions & 1 deletion ci/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,10 @@ set -x
$CROSS test --features zlib --target $TARGET_TRIPLE
$CROSS test --features zlib-default --no-default-features --target $TARGET_TRIPLE
$CROSS test --features zlib-ng --no-default-features --target $TARGET_TRIPLE
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE

if rustup component list | grep clippy &>/dev/null; then
$CROSS clippy --features zlib-ng --no-default-features --target $TARGET_TRIPLE
$CROSS clippy --features zlib --target $TARGET_TRIPLE
$CROSS clippy --features zlib-default --no-default-features --target $TARGET_TRIPLE
fi

0 comments on commit 756dc3b

Please sign in to comment.