]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Test anchors build in CI
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 15 Feb 2023 00:32:45 +0000 (16:32 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 20 Mar 2023 23:46:38 +0000 (16:46 -0700)
.github/workflows/build.yml
ci/ci-tests.sh

index 881e4f24749f36cea71f75f7fa2921c5190263ab..72220d831d3bfe60085df12b16d3c0a8e5be1de2 100644 (file)
@@ -179,6 +179,7 @@ jobs:
           cargo check --no-default-features --features=no-std --release
           cargo check --no-default-features --features=futures --release
           cargo doc --release
+          RUSTDOCFLAGS="--cfg=anchors" cargo doc --release
 
   fuzz:
     runs-on: ubuntu-latest
index 7b0beb90fa9e3d59c851ec091a35b8ef53f902fa..5d229a03f197133025bbd7e8528f0b15764c2b21 100755 (executable)
@@ -89,3 +89,8 @@ if [ "$RUSTC_MINOR_VERSION" -gt 55 ]; then
        cargo test --verbose --color always
        popd
 fi
+
+echo -e "\n\nTest anchors builds"
+pushd lightning
+RUSTFLAGS="$RUSTFLAGS --cfg=anchors" cargo test --verbose --color always -p lightning
+popd