summaryrefslogtreecommitdiff
path: root/ci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci.sh')
-rwxr-xr-xci.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/ci.sh b/ci.sh
new file mode 100755
index 0000000..d49da2e
--- /dev/null
+++ b/ci.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -euxo pipefail
+
+cargo build
+cargo build --target thumbv6m-none-eabi
+cargo build --target thumbv7em-none-eabi
+cargo build --target riscv32imc-unknown-none-elf
+cargo build --target riscv32imac-unknown-none-elf
+cargo build --target i686-unknown-linux-gnu
+cargo build --target x86_64-unknown-linux-gnu
+cargo build --target riscv64gc-unknown-linux-gnu
+
+# without --release, it fails with "error: ran out of registers during register allocation"
+cargo build --release -Zbuild-std=core --target avr-specs/avr-atmega328p.json