blob: 8ceb4b4c885dfe3312f98a978e09744d4158cc2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
set -e
# Set of features to build & test.
FEATURE_SETS=(
# std
"std"
"std approx bytemuck mint rand serde debug-glam-assert transform-types"
"std scalar-math approx bytemuck mint rand serde debug-glam-assert transform-types"
"std cuda"
"std scalar-math cuda"
# no_std
"libm"
"libm scalar-math approx bytemuck mint rand serde debug-glam-assert transform-types"
)
rustc --version
for features in "${FEATURE_SETS[@]}"
do
:
cargo build --tests --no-default-features --features="$features"
echo cargo test --no-default-features --features=\"$features\"
cargo test --no-default-features --features="$features"
done
pushd test_no_std && cargo check
|