rust/ci/build_and_test.bat
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

20 lines
442 B
Batchfile
Executable File

set "RUSTFLAGS=-D warnings"
set "RUSTFMT_CI=1"
:: Print version information
rustc -Vv || exit /b 1
cargo -V || exit /b 1
:: Build and test main crate
if "%CFG_RELEASE_CHANNEL%"=="nightly" (
cargo build --locked --all-features || exit /b 1
) else (
cargo build --locked || exit /b 1
)
cargo test || exit /b 1
:: Build and test other crates
cd config_proc_macro || exit /b 1
cargo build --locked || exit /b 1
cargo test || exit /b 1