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