]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add Taproot CI test.
authorArik Sosman <git@arik.io>
Fri, 31 Mar 2023 05:59:21 +0000 (22:59 -0700)
committerArik Sosman <git@arik.io>
Mon, 3 Apr 2023 20:17:12 +0000 (13:17 -0700)
.github/workflows/build.yml
ci/ci-tests.sh

index 72220d831d3bfe60085df12b16d3c0a8e5be1de2..a08549c0c5c73357a3c9ec07fa10dcf9eab1d100 100644 (file)
@@ -180,6 +180,15 @@ jobs:
           cargo check --no-default-features --features=futures --release
           cargo doc --release
           RUSTDOCFLAGS="--cfg=anchors" cargo doc --release
+      - name: Run cargo check for Taproot build.
+        run: |
+          cargo check --release
+          cargo check --no-default-features --features=no-std --release
+          cargo check --no-default-features --features=futures --release
+          cargo doc --release
+        env:
+          RUSTFLAGS: '--cfg=anchors --cfg=taproot'
+          RUSTDOCFLAGS: '--cfg=anchors --cfg=taproot'
 
   fuzz:
     runs-on: ubuntu-latest
index b2de8bc4af3cfc1b39710d012b9bda974746125d..01ef631f7835e36edfbddfb02fec400b5193deed 100755 (executable)
@@ -94,4 +94,6 @@ fi
 echo -e "\n\nTest anchors builds"
 pushd lightning
 RUSTFLAGS="$RUSTFLAGS --cfg=anchors" cargo test --verbose --color always -p lightning
+echo -e "\n\nTest Taproot builds"
+RUSTFLAGS="$RUSTFLAGS --cfg=anchors --cfg=taproot" cargo test --verbose --color always -p lightning
 popd