File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,14 @@ jobs:
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
23
24
build-net-tokio : true
24
25
coverage : true
26
+ - toolchain : 1.34.2
27
+ check-fuzz-fmt : true
25
28
runs-on : ubuntu-latest
26
29
steps :
27
30
- name : Checkout source code
32
35
toolchain : ${{ matrix.toolchain }}
33
36
override : true
34
37
profile : minimal
38
+ - name : Check formatting
39
+ if : matrix.check-fmt
40
+ run : rustup component add rustfmt && cargo fmt --all -- --check
41
+ if : matrix.check-fuzz-fmt
42
+ run : rustup component add rustfmt && cd fuzz && cargo fmt --all -- --check
35
43
- name : Build on Rust ${{ matrix.toolchain }} with net-tokio
36
44
if : matrix.build-net-tokio
37
45
run : RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ 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; fi
20
+ - if [ "$(rustup show | grep 1.34.2)" != "" ]; then rustup component add rustfmt && cd fuzz && cargo fmt --all -- --check && cd ../; fi
18
21
# Support lightning-net-tokio only on Rust stable, beta, and 1.39.0
19
22
- if [ "$(rustup show | grep default | grep '1.39.0')" != "" ]; then export BUILD_NET_TOKIO=1; fi
20
23
- 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