Skip to content

Commit

Permalink
hardcode target cpu for clusterfuzz targets (near#10638)
Browse files Browse the repository at this point in the history
This should hopefully counter the issue that our fuzzers are currently
facing, and that stem from -C target-cpu=native in bolero code:
https://github.com/camshaft/bolero/blob/a9dc98616435c85daca4b1612eb4b014c757d7db/bin/cargo-bolero/src/project.rs#L143
  • Loading branch information
Ekleog-NEAR authored Feb 21, 2024
1 parent 8ffa7f2 commit 03813d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/master_fuzzer_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ jobs:
run: |
NAME="nearcore-${{ github.ref_name }}-$(env TZ=Etc/UTC date +"%Y%m%d%H%M%S")"
sed -i 's/warnings = "deny"/warnings = "warn"/' Cargo.toml
RUSTFLAGS="--cfg fuzz" cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz
# Our Clusterfuzz setup currently (2024-02) runs on Cascade Lake CPUs
RUSTFLAGS="--cfg fuzz -C target-cpu=cascadelake" cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz
gsutil cp -Z target/fuzz/clusterfuzz.tar "gs://fuzzer_targets/${{ github.ref_name }}/$NAME.tar.gz"

0 comments on commit 03813d8

Please sign in to comment.