File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ matrix:
28
28
language : bash
29
29
if : (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
30
30
31
+ - env : RUSTFMT=1
32
+ rust : stable
33
+ if : (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
34
+
31
35
32
36
install :
33
37
- ci/install.sh
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
12
12
curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
13
13
fi
14
14
fi
15
+
16
+ if [ -n " ${RUSTFMT:- } " ]; then
17
+ rustup component add rustfmt
18
+ fi
Original file line number Diff line number Diff line change @@ -14,3 +14,7 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
14
14
PATH=" $PATH :$PWD /gcc/bin"
15
15
./check-blobs.sh
16
16
fi
17
+
18
+ if [ -n " ${RUSTFMT:- } " ]; then
19
+ cargo fmt -- --check
20
+ fi
You can’t perform that action at this time.
0 commit comments