Make ci script run on Mac OS X

This commit is contained in:
Ulf Lilleengen 2021-11-28 14:07:21 +01:00
parent 543cc65e56
commit 1b24b3bd68

2
ci.sh
View File

@ -5,7 +5,7 @@ set -euo pipefail
export CARGO_TARGET_DIR=$PWD/target_ci export CARGO_TARGET_DIR=$PWD/target_ci
export RUSTFLAGS=-Dwarnings export RUSTFLAGS=-Dwarnings
find -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 find . -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018
# Generate stm32-metapac # Generate stm32-metapac
# for some reason Cargo stomps the cache if we don't specify --target. # for some reason Cargo stomps the cache if we don't specify --target.