aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh
new file mode 100644
index 0000000..9f83f3f
--- /dev/null
+++ b/ci/script.sh
@@ -0,0 +1,13 @@
+set -ex
+
+main() {
+ if [ $TARGET = x86_64-unknown-linux-gnu ]; then
+ cargo test
+ return
+ fi
+
+ cross build --target $TARGET
+ cross build --target $TARGET --release
+}
+
+main