add check for submodules in release builds (#21643)

* add check for submodules in release builds

* this catches it too

* Update release/build_release2.sh
pull/21657/head
Adeeb Shihadeh 2021-07-19 10:09:16 -07:00 committed by GitHub
parent e294dfa707
commit 07614d868e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,14 @@ scons -j3
python selfdrive/manager/test/test_manager.py
selfdrive/car/tests/test_car_interfaces.py
# Ensure no submodules in release
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
echo "submodules found:"
git submodule--helper list
exit 1
fi
git submodule status
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete