@@ -58,15 +58,16 @@ jobs:
5858 - uses : actions/checkout@v6
5959 with :
6060 persist-credentials : false
61- - uses : dtolnay/rust-toolchain@nightly
6261 - name : Install `cargo-fuzz`
63- run : cargo install cargo-fuzz
62+ run : |
63+ echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" # Use -Z
64+ cargo install cargo-fuzz --locked
6465 - uses : Swatinem/rust-cache@v2
6566 with :
6667 shared-key : " cargo-fuzz-cache-key"
6768 cache-directories : " fuzz/target"
6869 - name : Run `cargo-fuzz build`
69- run : cargo +nightly fuzz build
70+ run : cargo fuzz build
7071
7172 fuzz-run :
7273 needs : fuzz-build
@@ -102,9 +103,10 @@ jobs:
102103 - uses : actions/checkout@v6
103104 with :
104105 persist-credentials : false
105- - uses : dtolnay/rust-toolchain@nightly
106106 - name : Install `cargo-fuzz`
107- run : cargo install cargo-fuzz
107+ run : |
108+ echo "RUSTC_BOOTSTRAP=1" >> "${GITHUB_ENV}" # Use nightly
109+ cargo install cargo-fuzz --locked
108110 - uses : Swatinem/rust-cache@v2
109111 with :
110112 shared-key : " cargo-fuzz-cache-key"
@@ -122,7 +124,7 @@ jobs:
122124 run : |
123125 mkdir -p fuzz/stats
124126 STATS_FILE="fuzz/stats/${{ matrix.test-target.name }}.txt"
125- cargo +nightly fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -timeout=${{ env.RUN_FOR }} -detect_leaks=0 -print_final_stats=1 2>&1 | tee "$STATS_FILE"
127+ cargo fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -timeout=${{ env.RUN_FOR }} -detect_leaks=0 -print_final_stats=1 2>&1 | tee "$STATS_FILE"
126128
127129 # Extract key stats from the output
128130 if grep -q "stat::number_of_executed_units" "$STATS_FILE"; then
0 commit comments