From: Matt Corallo Date: Fri, 19 Feb 2021 20:07:28 +0000 (-0500) Subject: Apply --cfg=fuzzing when fuzzing, as required by new secp256k1 X-Git-Tag: v0.0.13~18^2~5 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=9b7609a8c580b9bab758a08f209cb2712ed13a71;p=rust-lightning Apply --cfg=fuzzing when fuzzing, as required by new secp256k1 Note that rust-fuzz wrappers (including honggfuzz) already apply this for us. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4fe497fa..628d620a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -202,7 +202,7 @@ jobs: sudo apt-get update sudo apt-get -y install build-essential binutils-dev libunwind-dev - name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }} - run: cd fuzz && cargo test --verbose --color always + run: cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose --color always - name: Run fuzzers run: cd fuzz && ./ci-fuzz.sh