]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Apply --cfg=fuzzing when fuzzing, as required by new secp256k1
authorMatt Corallo <git@bluematt.me>
Fri, 19 Feb 2021 20:07:28 +0000 (15:07 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 26 Feb 2021 20:15:18 +0000 (15:15 -0500)
Note that rust-fuzz wrappers (including honggfuzz) already apply
this for us.

.github/workflows/build.yml

index e4fe497fa3b6d3d8307d6392f6c2847751bdd6d2..628d620a5dc67cf048bd4e641ecb6c8e1dc16986 100644 (file)
@@ -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