-
Notifications
You must be signed in to change notification settings - Fork 61
/
ci.sh
executable file
·39 lines (30 loc) · 1.31 KB
/
ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# Copyright 2021 Contributors to the Parsec project.
# SPDX-License-Identifier: Apache-2.0
# Continuous Integration test script
set -euf -o pipefail
pushd cryptoki-sys
RUST_BACKTRACE=1 cargo build --features generate-bindings
popd
# check formatting before going through all the builds
if cargo fmt --version; then
cargo fmt --all -- --check
fi
if cargo clippy --version; then
cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
fi
RUST_BACKTRACE=1 cargo build
RUST_BACKTRACE=1 cargo build --all-features
RUST_BACKTRACE=1 cargo build --target arm-unknown-linux-gnueabi
RUST_BACKTRACE=1 cargo build --target armv7-unknown-linux-gnueabi
RUST_BACKTRACE=1 cargo build --target armv7-unknown-linux-gnueabihf
RUST_BACKTRACE=1 cargo build --target aarch64-unknown-linux-gnu
RUST_BACKTRACE=1 cargo build --target i686-unknown-linux-gnu
RUST_BACKTRACE=1 cargo build --target loongarch64-unknown-linux-gnu
RUST_BACKTRACE=1 cargo build --target powerpc64-unknown-linux-gnu
RUST_BACKTRACE=1 cargo build --target powerpc64le-unknown-linux-gnu
RUST_BACKTRACE=1 cargo build --target x86_64-pc-windows-msvc
RUST_BACKTRACE=1 cargo build --target x86_64-apple-darwin
RUST_BACKTRACE=1 cargo build --target aarch64-apple-darwin
RUST_BACKTRACE=1 cargo build --target x86_64-unknown-freebsd
RUST_BACKTRACE=1 cargo test