aboutsummaryrefslogtreecommitdiff
path: root/ci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci.sh')
-rwxr-xr-xci.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/ci.sh b/ci.sh
index 6beea8677..ab0448721 100755
--- a/ci.sh
+++ b/ci.sh
@@ -6,9 +6,17 @@ export CARGO_TARGET_DIR=$PWD/target_ci
6export RUSTFLAGS=-Dwarnings 6export RUSTFLAGS=-Dwarnings
7export DEFMT_LOG=trace 7export DEFMT_LOG=trace
8 8
9find . -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 9find . -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' -not -path '*stm32-metapac/src/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018
10 10
11# Generate stm32-metapac 11# Generate stm32-metapac
12if [ ! -d "stm32-metapac-backup" ]
13then
14 cp -r stm32-metapac stm32-metapac-backup
15fi
16
17rm -rf stm32-metapac
18cp -r stm32-metapac-backup stm32-metapac
19
12# for some reason Cargo stomps the cache if we don't specify --target. 20# for some reason Cargo stomps the cache if we don't specify --target.
13# This happens with vanilla Cargo, not just cargo-batch. Bug? 21# This happens with vanilla Cargo, not just cargo-batch. Bug?
14(cd stm32-metapac-gen; cargo run --release --target x86_64-unknown-linux-gnu) 22(cd stm32-metapac-gen; cargo run --release --target x86_64-unknown-linux-gnu)