Skip to content

Commit ef8aff0

Browse files
keldoninionut-arm
authored andcommitted
flip order of CI commands, to check fmt and clippy first
Signed-off-by: Eric Devolder <[email protected]>
1 parent 2141f15 commit ef8aff0

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

ci.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

88
set -euf -o pipefail
99

10+
pushd cryptoki-sys
11+
RUST_BACKTRACE=1 cargo build --features generate-bindings
12+
popd
13+
14+
# check formatting before going through all the builds
15+
if cargo fmt --version; then
16+
cargo fmt --all -- --check
17+
fi
18+
if cargo clippy --version; then
19+
cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
20+
fi
21+
1022
RUST_BACKTRACE=1 cargo build
1123

1224
RUST_BACKTRACE=1 cargo build --all-features
@@ -24,15 +36,4 @@ RUST_BACKTRACE=1 cargo build --target x86_64-apple-darwin
2436
RUST_BACKTRACE=1 cargo build --target aarch64-apple-darwin
2537
RUST_BACKTRACE=1 cargo build --target x86_64-unknown-freebsd
2638

27-
pushd cryptoki-sys
28-
RUST_BACKTRACE=1 cargo build --features generate-bindings
29-
popd
30-
31-
if cargo fmt --version; then
32-
cargo fmt --all -- --check
33-
fi
34-
if cargo clippy --version; then
35-
cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
36-
fi
37-
3839
RUST_BACKTRACE=1 cargo test

0 commit comments

Comments
 (0)