nalgebra/ci/build.sh

18 lines
660 B
Bash
Raw Normal View History

2018-05-25 00:29:52 +08:00
#! /bin/bash
set -ev
if [ -z "$NO_STD" ]; then
2018-05-25 00:44:26 +08:00
cargo build --verbose;
cargo build --verbose --features "arbitrary";
cargo build --verbose --features "mint";
cargo build --verbose --features "alloc";
cargo build --verbose --features "serde-serialize";
cargo build --verbose --features "abomonation-serialize";
cargo build --verbose --features "debug";
cargo build --verbose --features "debug arbitrary mint serde-serialize abomonation-serialize";
2018-05-25 00:29:52 +08:00
else
rustup component add rust-src
2018-05-25 00:29:52 +08:00
cargo install xargo;
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
fi