Skip to content

Commit 9342f37

Browse files
committed
Check code formatting on CI
1 parent 0822390 commit 9342f37

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ci/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
set -euxo pipefail
22

33
main() {
4+
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
5+
rustup component add rustfmt
6+
fi
7+
48
case $TARGET in
59
arm*v7r-none-eabi*)
610
rustup target add $TARGET

ci/script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
set -euxo pipefail
22

33
main() {
4+
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
5+
cargo fmt --all -- --check
6+
fi
7+
48
cargo check --target $TARGET
59
cargo check --features nop --target $TARGET
610

0 commit comments

Comments
 (0)