diff options
Diffstat (limited to 'ci.sh')
| -rwxr-xr-x | ci.sh | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -6,9 +6,17 @@ export CARGO_TARGET_DIR=$PWD/target_ci | |||
| 6 | export RUSTFLAGS=-Dwarnings | 6 | export RUSTFLAGS=-Dwarnings |
| 7 | export DEFMT_LOG=trace | 7 | export DEFMT_LOG=trace |
| 8 | 8 | ||
| 9 | find . -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 | 9 | find . -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 |
| 12 | if [ ! -d "stm32-metapac-backup" ] | ||
| 13 | then | ||
| 14 | cp -r stm32-metapac stm32-metapac-backup | ||
| 15 | fi | ||
| 16 | |||
| 17 | rm -rf stm32-metapac | ||
| 18 | cp -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) |
