From: Wilmer Paulino Date: Wed, 15 Feb 2023 00:32:45 +0000 (-0800) Subject: Test anchors build in CI X-Git-Tag: v0.0.115~57^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=881656ba9e981b5994b9ac7028571345bc0f466b;p=rust-lightning Test anchors build in CI --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 881e4f247..72220d831 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/ci/ci-tests.sh b/ci/ci-tests.sh index 7b0beb90f..5d229a03f 100755 --- a/ci/ci-tests.sh +++ b/ci/ci-tests.sh @@ -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