From e95e9c02ca7c7556c5f974bf62fd23accbabc890 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Mon, 24 Jun 2024 22:00:42 +0100 Subject: [PATCH] try to fix fuzz builds --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a416e0fd..0476f570 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -213,7 +213,10 @@ jobs: cache-target: release bins: cargo-fuzz - - run: cargo fuzz run --fuzz-dir crates/fuzz compare_to_serde --release -- -max_total_time=300s + - run: | + # cargo fuzz defaults to musl targets, which is seeming incomatible with sanitizers according to CI failures + RUST_TARGET=$(rustc -Vv | grep host | cut -d ' ' -f 2) + cargo fuzz run --target=$RUST_TARGET --fuzz-dir crates/fuzz compare_to_serde --release -- -max_total_time=300s fuzz-skip: name: fuzz skip @@ -230,7 +233,10 @@ jobs: cache-target: release bins: cargo-fuzz - - run: cargo fuzz run --fuzz-dir crates/fuzz compare_skip --release -- -max_total_time=300s + - run: | + # cargo fuzz defaults to musl targets, which is seeming incomatible with sanitizers according to CI failures + RUST_TARGET=$(rustc -Vv | grep host | cut -d ' ' -f 2) + cargo fuzz run --fuzz-dir crates/fuzz compare_skip --release -- -max_total_time=300s lint: runs-on: ubuntu-latest