diff options
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 |