File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 17
17
include :
18
18
- toolchain : stable
19
19
build-net-tokio : true
20
+ check-fmt : true
20
21
- toolchain : beta
21
22
build-net-tokio : true
22
23
- toolchain : 1.39.0
32
33
toolchain : ${{ matrix.toolchain }}
33
34
override : true
34
35
profile : minimal
36
+ - name : Check formatting
37
+ if : matrix.check-fmt
38
+ run : rustup component add rustfmt && cargo fmt --all -- --check && cd fuzz && cargo fmt --all -- --check
35
39
- name : Build on Rust ${{ matrix.toolchain }} with net-tokio
36
40
if : matrix.build-net-tokio
37
41
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ before_install:
15
15
- sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
16
16
17
17
script :
18
+ # Check formatting
19
+ - if [ "$(rustup show | grep stable)" != "" ]; then rustup component add rustfmt && cargo fmt --all -- --check && cd fuzz && cargo fmt --all -- --check && cd ../ ; fi
18
20
# Support lightning-net-tokio only on Rust stable, beta, and 1.39.0
19
21
- if [ "$(rustup show | grep default | grep '1.39.0')" != "" ]; then export BUILD_NET_TOKIO=1; fi
20
22
- if [ "$(rustup show | grep default | grep '1\.')" == "" ]; then export BUILD_NET_TOKIO=1; fi
You can’t perform that action at this time.
0 commit comments