]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Test all log-limiting features in CI 2021-11-fix-log-select
authorMatt Corallo <git@bluematt.me>
Tue, 23 Nov 2021 23:03:34 +0000 (23:03 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 24 Nov 2021 02:52:53 +0000 (02:52 +0000)
.github/workflows/build.yml

index 34337769a26677969bc8a3246c4cbb36f35648f7..90907d9fa981033d8424fd494bc0995043354429 100644 (file)
@@ -43,6 +43,7 @@ jobs:
             build-no-std: true
           - toolchain: 1.36.0
             build-no-std: false
+            test-log-variants: true
           - toolchain: 1.41.0
             build-no-std: false
           - toolchain: 1.45.2
@@ -73,6 +74,13 @@ jobs:
           cargo build --verbose  --color always -p lightning
           cargo build --verbose  --color always -p lightning-invoice
           cargo build --verbose  --color always -p lightning-persister
+      - name: Build on Rust ${{ matrix.toolchain }} with all Log-Limiting features
+        if: matrix.test-log-variants
+        run: |
+          cd lightning
+          for FEATURE in $(cat Cargo.toml | grep '^max_level_' | awk '{ print $1 }'); do
+            cargo build --verbose --color always --features $FEATURE
+          done
       - name: Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features
         if: "matrix.build-net-tokio && !matrix.coverage"
         run: |