Revert "Bug fix: RUSTFLAGS doesn't work to set profile, so set it in each cargo call"

This reverts commit fd6630afd2.
This commit is contained in:
Chris Hennick 2024-03-07 16:31:08 -08:00
parent fd6630afd2
commit 9a1fd62481

View file

@ -95,11 +95,11 @@ jobs:
- run: cargo install cargo-fuzz
- name: compile fuzz
run: |
cargo fuzz build --profile=release-with-debug fuzz_read
cargo fuzz build fuzz_read
- name: run fuzz
timeout-minutes: 330
run: |
cargo fuzz run --profile=release-with-debug fuzz_read -- -timeout=10s -fork=2 -runs=200000000 -max_len=5000 -len_control=10000 -dict=fuzz/fuzz.dict
cargo fuzz run fuzz_read -- -timeout=10s -fork=2 -runs=200000000 -max_len=5000 -len_control=10000 -dict=fuzz/fuzz.dict
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3
@ -123,11 +123,11 @@ jobs:
- run: cargo install cargo-fuzz
- name: compile fuzz
run: |
cargo fuzz build --profile=release-with-debug --no-default-features fuzz_read
cargo fuzz build --no-default-features fuzz_read
- name: run fuzz
timeout-minutes: 330
run: |
cargo fuzz run --profile=release-with-debug --no-default-features fuzz_read -- -timeout=10s -fork=2 -runs=200000000 -max_len=16384 -len_control=10000 -dict=fuzz/fuzz.dict
cargo fuzz run --no-default-features fuzz_read -- -timeout=10s -fork=2 -runs=200000000 -max_len=16384 -len_control=10000 -dict=fuzz/fuzz.dict
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3
@ -138,6 +138,8 @@ jobs:
fuzz_write:
runs-on: ubuntu-latest
env:
RUSTFLAGS: --profile=release-with-debug
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
@ -149,11 +151,11 @@ jobs:
- run: cargo install cargo-fuzz
- name: compile fuzz
run: |
cargo fuzz build --profile=release-with-debug fuzz_write
cargo fuzz build fuzz_write
- name: run fuzz
timeout-minutes: 330
run: |
cargo fuzz run --profile=release-with-debug fuzz_write -- -timeout=10s -fork=2 -runs=10000000 -max_len=2000 -len_control=200 -dict=fuzz/fuzz.dict
cargo fuzz run fuzz_write -- -timeout=10s -fork=2 -runs=10000000 -max_len=2000 -len_control=200 -dict=fuzz/fuzz.dict
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3
@ -164,6 +166,8 @@ jobs:
fuzz_write_with_no_features:
runs-on: ubuntu-latest
env:
RUSTFLAGS: --profile=release-with-debug
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
@ -175,11 +179,11 @@ jobs:
- run: cargo install cargo-fuzz
- name: compile fuzz
run: |
cargo fuzz build --profile=release-with-debug --no-default-features fuzz_write
cargo fuzz build --no-default-features fuzz_write
- name: run fuzz
timeout-minutes: 330
run: |
cargo fuzz run --profile=release-with-debug --no-default-features fuzz_write -- -timeout=10s -fork=2 -runs=20000000 -max_len=10000 -len_control=200 -dict=fuzz/fuzz.dict
cargo fuzz run --no-default-features fuzz_write -- -timeout=10s -fork=2 -runs=20000000 -max_len=10000 -len_control=200 -dict=fuzz/fuzz.dict
- name: Upload any failure inputs
if: always()
uses: actions/upload-artifact@v3