Skip to content

Commit 641d4f5

Browse files
ytmimicalebcartwright
authored andcommitted
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.
1 parent 177ef66 commit 641d4f5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ci/build_and_test.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ rustc -Vv || exit /b 1
66
cargo -V || exit /b 1
77

88
:: Build and test main crate
9-
cargo build --locked || exit /b 1
9+
if "%CFG_RELEASE_CHANNEL%"=="nightly" (
10+
cargo build --locked --all-features || exit /b 1
11+
) else (
12+
cargo build --locked || exit /b 1
13+
)
1014
cargo test || exit /b 1
1115

1216
:: Build and test other crates

ci/build_and_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ rustc -Vv
1010
cargo -V
1111

1212
# Build and test main crate
13-
cargo build --locked
13+
if [ "$CFG_RELEASE_CHANNEL" == "nightly" ]; then
14+
cargo build --locked --all-features
15+
else
16+
cargo build --locked
17+
fi
1418
cargo test
1519

1620
# Build and test other crates

0 commit comments

Comments
 (0)