Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Install `cargo-fuzz`
run: |
cargo install cargo-fuzz --locked
uses: taiki-e/install-action@v2
with:
tool: cargo-fuzz
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cargo-fuzz-cache-key"
cache-directories: "fuzz/target"
- name: Run `cargo-fuzz build`
run: cargo fuzz build
# https://github.com/rust-fuzz/cargo-fuzz/issues/398
run: cargo fuzz build --target host-tuple

fuzz-run:
needs: fuzz-build
Expand All @@ -54,8 +56,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Install `cargo-fuzz`
run: |
cargo install cargo-fuzz --locked
uses: taiki-e/install-action@v2
with:
tool: cargo-fuzz
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cargo-fuzz-cache-key"
Expand All @@ -70,7 +73,7 @@ jobs:
shell: bash
continue-on-error: ${{ !matrix.test-target.should_pass }}
run: |
cargo fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
cargo fuzz run --target host-tuple ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does cargo fuzz run find the binary with host-tuple?
i think it builds the path as fuzz/target//release/..., so it would look in fuzz/target/host-tuple/
we only run on ubuntu-latest, could you please just use x86_64-unknown-linux-gnu?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host-tuple is same with x86_64-unknown-linux-gnu. No?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fuzz/target/host-tuple/

It is confusing with --profile=profile-name

- name: Save Corpus Cache
uses: actions/cache/save@v6
with:
Expand Down
Loading