Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit e80dad0

Browse files
committed
Always enable unstable-float in CI
Since these add new API but do not affect runtime, we can enable it for all tests that run with nightly.
1 parent 400e196 commit e80dad0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ci/run.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,26 @@ esac
6262
cargo check --no-default-features
6363
cargo check --features "force-soft-floats"
6464

65+
# Always enable `unstable-float` since it expands available API but does not
66+
# change any implementations.
67+
extra_flags="$extra_flags --features unstable-float"
68+
6569
if [ "${BUILD_ONLY:-}" = "1" ]; then
6670
cmd="cargo build --target $target --package libm"
6771
$cmd
68-
$cmd --features "unstable-intrinsics"
72+
$cmd --features unstable-intrinsics
6973

7074
echo "can't run tests on $target; skipping"
7175
else
7276
cmd="cargo test --all --target $target $extra_flags"
7377

74-
# stable by default
78+
# Test without intrinsics
7579
$cmd
7680
$cmd --release
7781

78-
# unstable with a feature
79-
$cmd --features "unstable-intrinsics"
80-
$cmd --release --features "unstable-intrinsics"
82+
# Test with intrinsic use
83+
$cmd --features unstable-intrinsics
84+
$cmd --release --features unstable-intrinsics
8185

8286
# Make sure benchmarks have correct results
8387
$cmd --benches

0 commit comments

Comments
 (0)