rust/ci/build_and_test.sh

30 lines
463 B
Bash
Raw Normal View History

#!/bin/bash
set -euo pipefail
export RUSTFLAGS="-D warnings"
export RUSTFMT_CI=1
# Print version information
rustc -Vv
cargo -V
# Build and test main crate
if [ "$CFG_RELEASE_CHANNEL" == "nightly" ]; then
cargo build --locked --all-features
else
cargo build --locked
fi
cargo test
2024-07-20 02:54:03 -05:00
# Build and test config_proc_macro
cd config_proc_macro
cargo build --locked
cargo test
2024-07-20 02:54:03 -05:00
# Build and test check_diff
cd ..
cd check_diff
cargo build --locked
cargo test