aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rwxr-xr-xci.sh10
2 files changed, 13 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 7faa2c32d..92f9a32b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,7 @@ Cargo.lock
4third_party 4third_party
5/Cargo.toml 5/Cargo.toml
6stm32-metapac-gen/out/ 6stm32-metapac-gen/out/
7stm32-metapac-backup
8stm32-metapac/src/chips
9stm32-metapac/src/peripherals
10out/
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)