rust/ci/build_and_test.sh
Yacin Tmimi 641d4f5898 Build nightly rustfmt using --all-features in CI
Previously we were only building rustfmt with default features in CI. We
recently received a report that rustfmt was unable to compile with the
`generic-simd` feature, which is not enabled by default. To prevent a
similar situation in the future we'll start build nightly rustfmt with
all features enabled.
2023-08-13 13:49:06 -05:00

24 lines
377 B
Bash
Executable File

#!/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
# Build and test other crates
cd config_proc_macro
cargo build --locked
cargo test