Skip to content

Commit 8bfffb2

Browse files
committed
Bump fuzz MSRV to 1.80
honggfuzz builds appear to fail on 1.75 - 1.79, so we just pick an MSRV of the first toolchain that actually works. The cargo command for testing binaries has also changed, which is reflected here. Sadly, github for some reason drops a trailing in the env entry, so we copy the rust version a few places.
1 parent 89671a5 commit 8bfffb2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,18 @@ jobs:
253253

254254
fuzz:
255255
runs-on: self-hosted
256-
env:
257-
TOOLCHAIN: 1.75
258256
steps:
259257
- name: Checkout source code
260258
uses: actions/checkout@v4
261-
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
259+
# For whatever reason, honggfuzz doesn't build on 1.75, and there's not a lot of
260+
# reason to insist on 1.75 for fuzzing, so we just pick an MSRV of 1.80 for fuzz.
261+
- name: Install Rust 1.80 toolchain
262262
run: |
263-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
264-
- name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
263+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain 1.80
264+
- name: Sanity check fuzz targets on Rust 1.80
265265
run: |
266266
cd fuzz
267-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always --lib --bins -j8
267+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always --lib --bin -j8
268268
cargo clean
269269
- name: Run fuzzers
270270
run: cd fuzz && ./ci-fuzz.sh && cd ..

0 commit comments

Comments
 (0)