Explorar el Código

Revert "Remove cortex-m-semihosting CI"

This reverts commit f4c48301dd3c8013e03d8e4748613e6fe17a7d93.

It has been decided that the CI will be left in for now, and updated to
work with this crate in the future.
Fawaz Tirmizi hace 3 años
padre
commit
6002ee5008
Se han modificado 2 ficheros con 26 adiciones y 0 borrados
  1. 12 0
      ci/install.sh
  2. 14 0
      ci/script.sh

+ 12 - 0
ci/install.sh

@@ -0,0 +1,12 @@
+set -euxo pipefail
+
+main() {
+    if [ $TARGET = thumbv7m-none-eabi ]; then
+        cargo install --list | grep xargo || \
+            cargo install xargo
+        rustup component list | grep 'rust-src.*installed' || \
+            rustup component add rust-src
+    fi
+}
+
+main

+ 14 - 0
ci/script.sh

@@ -0,0 +1,14 @@
+set -euxo pipefail
+
+main() {
+    local cargo=
+    if [ $TARGET = thumbv7m-none-eabi ]; then
+        cargo=xargo
+    else
+        cargo=cargo
+    fi
+
+    $cargo check --target $TARGET
+}
+
+main