mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-26 05:29:38 +01:00
18 lines
315 B
Bash
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
|