Skip to content

Commit c802c22

Browse files
committed
fix build
1 parent a492e35 commit c802c22

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/fuzz.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
# The number of seconds to run the fuzz target. 300 seconds = 5 minutes.
1818
FUZZ_TIME: 300
1919

20-
# Use address sanitizer in the fuzzing.
21-
RUSTFLAGS: -Zsanitizer=address
22-
2320
strategy:
2421
matrix:
2522
os: ["ubuntu-24.04-arm", "ubuntu-latest"]
@@ -42,8 +39,8 @@ jobs:
4239
- run: cargo install --root "${{ runner.tool_cache }}/cargo-fuzz" --version ${{ env.CARGO_FUZZ_VERSION }} cargo-fuzz --locked
4340

4441
# Build and then run the fuzz target.
45-
- run: cargo fuzz build ${{ matrix.fuzz_target }}
46-
- run: cargo fuzz run ${{ matrix.fuzz_target }} -- -max_total_time=${{ env.FUZZ_TIME }}
42+
- run: RUSTFLAGS=-Zsanitizer=address cargo fuzz build ${{ matrix.fuzz_target }}
43+
- run: RUSTFLAGS=-Zsanitizer=address cargo fuzz run ${{ matrix.fuzz_target }} -- -max_total_time=${{ env.FUZZ_TIME }}
4744

4845
# Upload fuzzing artifacts on failure for post-mortem debugging.
4946
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)