rtic/ci/script.sh

19 lines
315 B
Bash
Raw Normal View History

2017-04-12 06:12:06 +02:00
set -ex
main() {
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
2017-07-21 06:03:45 +02:00
cargo build
2017-04-12 06:12:06 +02:00
cargo test
return
fi
2017-07-21 06:03:45 +02:00
xargo build --target $TARGET
for ex in $(ls examples/*); do
ex=$(basename $ex)
ex=${ex%.*}
xargo build --target $TARGET --example $ex
done
2017-04-12 06:12:06 +02:00
}
main