File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ 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
25
27
runs-on : ubuntu-latest
26
28
steps :
27
29
- name : Checkout source code
32
34
toolchain : ${{ matrix.toolchain }}
33
35
override : true
34
36
profile : minimal
37
+ - name : Check formatting
38
+ if : matrix.check-fmt
39
+ run : rustup component add rustfmt && cargo fmt --all -- --check && cd fuzz && cargo fmt --all -- --check
35
40
- name : Build on Rust ${{ matrix.toolchain }} with net-tokio
36
41
if : matrix.build-net-tokio
37
42
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