nalgebra/ci/build.sh
2019-09-16 12:44:57 +01:00

31 lines
1.1 KiB
Bash
Executable File

#! /bin/bash
set -ev
if [ -z "$NO_STD" ]; then
if [ -z "$LAPACK" ]; then
cargo build --verbose -p nalgebra --no-default-features --lib;
cargo build --verbose -p nalgebra;
cargo build --verbose -p nalgebra --features "rand";
cargo build --verbose -p nalgebra --features "arbitrary";
cargo build --verbose -p nalgebra --features "mint";
cargo build --verbose -p nalgebra --features "alloc";
cargo build --verbose -p nalgebra --features "serde-serialize";
cargo build --verbose -p nalgebra --features "abomonation-serialize";
cargo build --verbose -p nalgebra --features "debug";
cargo build --verbose -p nalgebra --all-features
else
cargo build -p nalgebra-lapack;
fi
else
if [ "$CARGO_FEATURES" == "alloc" ]; then
cat << EOF > Xargo.toml
[target.x86_64-unknown-linux-gnu.dependencies]
alloc = {}
EOF
fi
rustup component add rust-src
cargo install xargo
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
fi