rtic/ci/script.sh
Jorge Aparicio 0788a15a39 update CI
2017-07-20 23:03:45 -05:00

18 lines
315 B
Bash

set -ex
main() {
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
cargo build
cargo test
return
fi
xargo build --target $TARGET
for ex in $(ls examples/*); do
ex=$(basename $ex)
ex=${ex%.*}
xargo build --target $TARGET --example $ex
done
}
main