@@ -190,12 +190,14 @@ jobs:
190190 unset CARGO_FEATURES_OPTION
191191 if [ -n "${{ matrix.job.features }}" ]; then CARGO_FEATURES_OPTION='--features "${{ matrix.job.features }}"' ; fi
192192 outputs CARGO_FEATURES_OPTION
193- - name : Confirm MinSRV compatible 'Cargo.lock'
193+ - name : Confirm MinSRV compatible '*/ Cargo.lock'
194194 shell : bash
195195 run : |
196- ## Confirm MinSRV compatible 'Cargo.lock'
197- # * 'Cargo.lock' is required to be in a format that `cargo` of MinSRV can interpret (eg, v1-format for MinSRV < v1.38)
198- cargo fetch --locked --quiet || { echo "::error file=Cargo.lock::Incompatible (or out-of-date) 'Cargo.lock' file; update using \`cargo +${{ env.RUST_MIN_SRV }} update\`" ; exit 1 ; }
196+ ## Confirm MinSRV compatible '*/Cargo.lock'
197+ # * '*/Cargo.lock' is required to be in a format that `cargo` of MinSRV can interpret (eg, v1-format for MinSRV < v1.38)
198+ for dir in "." "fuzz"; do
199+ ( cd "$dir" && cargo fetch --locked --quiet ) || { echo "::error file=$dir/Cargo.lock::Incompatible (or out-of-date) '$dir/Cargo.lock' file; update using \`cd '$dir' && cargo +${{ env.RUST_MIN_SRV }} update\`" ; exit 1 ; }
200+ done
199201 - name : Install/setup prerequisites
200202 shell : bash
201203 run : |
@@ -246,7 +248,9 @@ jobs:
246248 run : |
247249 ## `cargo update` testing
248250 # * convert any errors/warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message>
249- cargo fetch --locked --quiet || { echo "::error file=Cargo.lock::'Cargo.lock' file requires update (use \`cargo +${{ env.RUST_MIN_SRV }} update\`)" ; exit 1 ; }
251+ for dir in "." "fuzz"; do
252+ ( cd "$dir" && cargo fetch --locked --quiet ) || { echo "::error file=$dir/Cargo.lock::'$dir/Cargo.lock' file requires update (use \`cd '$dir' && cargo +${{ env.RUST_MIN_SRV }} update\`)" ; exit 1 ; }
253+ done
250254
251255 build_makefile :
252256 name : Build/Makefile
0 commit comments