diff options
author | 2017-07-20 23:03:45 -0500 | |
---|---|---|
committer | 2017-07-20 23:03:45 -0500 | |
commit | 0788a15a39599dece96ba5d2f8cb15c7e397939a (patch) | |
tree | 26cc2687685b51d66275305699b0f06d82579179 /ci/script.sh | |
parent | c7b9507a57f2ba28c18b15dd2719a1c56f74a302 (diff) | |
download | rtic-0788a15a39599dece96ba5d2f8cb15c7e397939a.tar.gz rtic-0788a15a39599dece96ba5d2f8cb15c7e397939a.tar.zst rtic-0788a15a39599dece96ba5d2f8cb15c7e397939a.zip |
update CI
Diffstat (limited to 'ci/script.sh')
-rw-r--r-- | ci/script.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ci/script.sh b/ci/script.sh index 9f83f3f4..212a48ad 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -2,12 +2,17 @@ set -ex main() { if [ $TARGET = x86_64-unknown-linux-gnu ]; then + cargo build cargo test return fi - cross build --target $TARGET - cross build --target $TARGET --release + xargo build --target $TARGET + for ex in $(ls examples/*); do + ex=$(basename $ex) + ex=${ex%.*} + xargo build --target $TARGET --example $ex + done } main |