Add a check for rebuild regression due to dep features in cargo tomls

This commit is contained in:
Dmitri Makarov 2022-07-11 16:10:45 -07:00 committed by Dmitri Makarov
parent 1dfbb225e3
commit b1718422ce
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,13 @@ test-stable-bpf)
"$cargo_test_bpf" --bpf-sdk ../../../../sdk/bpf
popd
fi
done
done |& tee cargo.log
solana_program_count=$(grep -c 'solana-program v' cargo.log)
rm -f cargo.log
if ((solana_program_count > 4)); then
echo "Regression of build redundancy. Review dependency features that trigger redundant rebuilds of solana-program."
exit 1
fi
# bpf-tools version
"$cargo_build_bpf" -V