Jelajahi Sumber

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 2 tahun lalu
induk
melakukan
6002ee5008
2 mengubah file dengan 26 tambahan dan 0 penghapusan
  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