1#!/bin/bash
2
3set -ex
4
5# Set of features to build & test.
6FEATURE_SETS=(
7  # std
8  "std"
9  "std approx bytemuck mint rand serde debug-glam-assert"
10  "std scalar-math approx bytemuck mint rand serde debug-glam-assert"
11  "std cuda"
12  "std scalar-math cuda"
13  "std libm"
14  "std scalar-math libm"
15  # no_std
16  "libm"
17  "libm scalar-math approx bytemuck mint rand serde debug-glam-assert"
18)
19
20rustc --version
21
22for features in "${FEATURE_SETS[@]}"
23do
24  :
25  cargo build --tests --no-default-features --features="$features"
26  cargo test --no-default-features --features="$features"
27done
28
29RUSTFLAGS='-C target-feature=+fma' cargo check
30
31cargo check -p glam-no_std
32