Skip to content

Commit 66be919

Browse files
authored
Merge pull request #3970 from TheBlueMatt/2025-07-less-fuzzing-mem
Limit fuzz builds in CI to 8 parallel tasks
2 parents 7ec13dc + db4890d commit 66be919

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
- name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
247247
run: |
248248
cd fuzz
249-
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always --lib --bins
249+
RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always --lib --bins -j8
250250
cargo clean
251251
- name: Run fuzzers
252252
run: cd fuzz && ./ci-fuzz.sh && cd ..

contrib/generate_fuzz_coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if [ "$OUTPUT_CODECOV_JSON" = "0" ]; then
6262
cargo llvm-cov --html --ignore-filename-regex "fuzz/" --output-dir "$OUTPUT_DIR"
6363
echo "Coverage report generated in $OUTPUT_DIR/html/index.html"
6464
else
65-
cargo llvm-cov --codecov --ignore-filename-regex "fuzz/" --output-path "$OUTPUT_DIR/fuzz-codecov.json"
65+
cargo llvm-cov -j8 --codecov --ignore-filename-regex "fuzz/" --output-path "$OUTPUT_DIR/fuzz-codecov.json"
6666
echo "Fuzz codecov report available at $OUTPUT_DIR/fuzz-codecov.json"
6767
fi
6868

fuzz/ci-fuzz.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sed -i 's/lto = true//' Cargo.toml
2929

3030
export HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz"
3131

32-
cargo --color always hfuzz build
32+
cargo --color always hfuzz build -j8
3333
for TARGET in src/bin/*.rs; do
3434
FILENAME=$(basename $TARGET)
3535
FILE="${FILENAME%.*}"

0 commit comments

Comments
 (0)