mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 08:15:44 +00:00
cargo-hfuzz ci: specify manifest patches via cargo --config (#14372)
This is less brittle than locally editing Cargo.toml, which breaks when our devs submit PRs such as #13992 that also temporarily add a patch section.
This commit is contained in:
@@ -456,6 +456,13 @@ cargo-hfuzz:
|
|||||||
--exit_code_upon_crash 1
|
--exit_code_upon_crash 1
|
||||||
--timeout 10
|
--timeout 10
|
||||||
--run_time 60
|
--run_time 60
|
||||||
|
# use git version of honggfuzz-rs until v0.5.56 is out, we need a few recent changes:
|
||||||
|
# https://github.com/rust-fuzz/honggfuzz-rs/pull/75 to avoid breakage on debian
|
||||||
|
# https://github.com/rust-fuzz/honggfuzz-rs/pull/81 fix to the above pr
|
||||||
|
# https://github.com/rust-fuzz/honggfuzz-rs/pull/82 fix for handling rusty-cachier's absolute CARGO_TARGET_DIR
|
||||||
|
HFUZZ_BUILD_ARGS: >
|
||||||
|
--config=patch.crates-io.honggfuzz.git="https://github.com/altaua/honggfuzz-rs"
|
||||||
|
--config=patch.crates-io.honggfuzz.rev="205f7c8c059a0d98fe1cb912cdac84f324cb6981"
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "hfuzz-$CI_COMMIT_SHORT_SHA"
|
name: "hfuzz-$CI_COMMIT_SHORT_SHA"
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
@@ -463,15 +470,6 @@ cargo-hfuzz:
|
|||||||
paths:
|
paths:
|
||||||
- primitives/arithmetic/fuzzer/hfuzz_workspace/
|
- primitives/arithmetic/fuzzer/hfuzz_workspace/
|
||||||
script:
|
script:
|
||||||
# use git version of honggfuzz-rs until v0.5.56 is out, we need a few recent changes:
|
|
||||||
# https://github.com/rust-fuzz/honggfuzz-rs/pull/75 to avoid breakage on debian
|
|
||||||
# https://github.com/rust-fuzz/honggfuzz-rs/pull/81 fix to the above pr
|
|
||||||
# https://github.com/rust-fuzz/honggfuzz-rs/pull/82 fix for handling rusty-cachier's absolute CARGO_TARGET_DIR
|
|
||||||
- |
|
|
||||||
cat >>Cargo.toml <<EOF
|
|
||||||
[patch.crates-io]
|
|
||||||
honggfuzz = { git = 'https://github.com/altaua/honggfuzz-rs', rev = '205f7c8c059a0d98fe1cb912cdac84f324cb6981' }
|
|
||||||
EOF
|
|
||||||
- cd ./primitives/arithmetic/fuzzer
|
- cd ./primitives/arithmetic/fuzzer
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
- cargo hfuzz build
|
- cargo hfuzz build
|
||||||
|
|||||||
Reference in New Issue
Block a user