Skip to content

Commit 6002ee5

Browse files
committed
Revert "Remove cortex-m-semihosting CI"
This reverts commit f4c4830. It has been decided that the CI will be left in for now, and updated to work with this crate in the future.
1 parent b7f5ee4 commit 6002ee5

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

ci/install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set -euxo pipefail
2+
3+
main() {
4+
if [ $TARGET = thumbv7m-none-eabi ]; then
5+
cargo install --list | grep xargo || \
6+
cargo install xargo
7+
rustup component list | grep 'rust-src.*installed' || \
8+
rustup component add rust-src
9+
fi
10+
}
11+
12+
main

ci/script.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
set -euxo pipefail
2+
3+
main() {
4+
local cargo=
5+
if [ $TARGET = thumbv7m-none-eabi ]; then
6+
cargo=xargo
7+
else
8+
cargo=cargo
9+
fi
10+
11+
$cargo check --target $TARGET
12+
}
13+
14+
main

0 commit comments

Comments
 (0)