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:
2121 rust :
2222 language : bash
2323 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)
2427
2528
2629install :
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
1212 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
1313 fi
1414fi
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
1818 PATH=" $PATH :$PWD /gcc/bin"
1919 ./check-blobs.sh
2020fi
21+
22+ if [ -n " ${RUSTFMT:- } " ]; then
23+ cargo fmt -- --check
24+ fi
You can’t perform that action at this time.
0 commit comments