summaryrefslogtreecommitdiff
path: root/ci.sh
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-11-24 01:43:53 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-11-24 01:43:53 +0100
commitf9934fb56b5afdcf18df28aa8290c8d048886c2b (patch)
tree2b23af6a45dcd05d79d48a554b2bae75d4519a64 /ci.sh
parente187f50f4b6b00c7afe91026b0c14282eeb4a975 (diff)
downloadembassy-f9934fb56b5afdcf18df28aa8290c8d048886c2b.zip
ci: do main build with fully generated stm32-metapac.
Diffstat (limited to 'ci.sh')
-rwxr-xr-xci.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci.sh b/ci.sh
index a3b7d804..8c6c2eeb 100755
--- a/ci.sh
+++ b/ci.sh
@@ -7,6 +7,13 @@ export RUSTFLAGS=-Dwarnings
find -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018
+# Generate stm32-metapac
+# for some reason Cargo stomps the cache if we don't specify --target.
+# This happens with vanilla Cargo, not just cargo-batch. Bug?
+(cd stm32-metapac-gen; cargo run --release --target x86_64-unknown-linux-gnu)
+rm -rf stm32-metapac
+mv stm32-metapac-gen/out stm32-metapac
+
cargo batch \
--- build --release --manifest-path embassy/Cargo.toml --target thumbv7em-none-eabi \
--- build --release --manifest-path embassy/Cargo.toml --target thumbv7em-none-eabi --features log,executor-agnostic \