From f9934fb56b5afdcf18df28aa8290c8d048886c2b Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 24 Nov 2021 01:43:53 +0100 Subject: ci: do main build with fully generated stm32-metapac. --- ci.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ci.sh') diff --git a/ci.sh b/ci.sh index a3b7d804f..8c6c2eebe 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 \ -- cgit