Skip to content

Commit 4831de4

Browse files
committed
Test all log-limiting features in CI
1 parent 31e592b commit 4831de4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
build-no-std: true
4444
- toolchain: 1.36.0
4545
build-no-std: false
46+
test-log-variants: true
4647
- toolchain: 1.41.0
4748
build-no-std: false
4849
- toolchain: 1.45.2
@@ -73,6 +74,13 @@ jobs:
7374
cargo build --verbose --color always -p lightning
7475
cargo build --verbose --color always -p lightning-invoice
7576
cargo build --verbose --color always -p lightning-persister
77+
- name: Build on Rust ${{ matrix.toolchain }} with all Log-Limiting features
78+
if: matrix.test-log-variants
79+
run: |
80+
cd lightning
81+
for FEATURE in $(cat Cargo.toml | grep '^max_level_' | awk '{ print $1 }'); do
82+
cargo build --verbose --color always --features $FEATURE
83+
done
7684
- name: Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features
7785
if: "matrix.build-net-tokio && !matrix.coverage"
7886
run: |

0 commit comments

Comments
 (0)