nalgebra/ci/build.sh

29 lines
1.0 KiB
Bash
Raw Normal View History

2018-05-25 00:29:52 +08:00
#! /bin/bash
set -ev
if [ -z "$NO_STD" ]; then
if [ -z "$LAPACK" ]; then
cargo build --verbose -p nalgebra;
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";
2019-02-03 21:18:55 +08:00
cargo build --verbose -p nalgebra --all-features
else
2020-01-19 23:45:25 +08:00
cargo build --manifest-path nalgebra-lapack/Cargo.toml --features "netlib" --no-default-features;
fi
2018-05-25 00:29:52 +08:00
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
2018-05-25 00:29:52 +08:00
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
2020-01-19 23:45:25 +08:00
fi