File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ matrix:
21
21
rust :
22
22
language : bash
23
23
if : (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
24
+ - env : RUSTFMT=1
25
+ rust : stable
26
+ if : (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
24
27
25
28
26
29
install :
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 @@ -18,3 +18,7 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
18
18
PATH=" $PATH :$PWD /gcc/bin"
19
19
./check-blobs.sh
20
20
fi
21
+
22
+ if [ -n " ${RUSTFMT:- } " ]; then
23
+ cargo fmt -- --check
24
+ fi
You can’t perform that action at this time.
0 commit comments