Remove object files from build archives to reduce size.
Fixes #3630
Change-Id: Id841b91b8ab31d79579685c4aebaa67dec464962
- grep "cannot be built" buildLogFile.log testBuildLogFile.log | tee -a buildErrors.log || true
- cmake --build . --target install 2>&1 | tee installBuildLogFile.log
- if [ -s buildErrors.log ] ; then echo "Found compiler warning during build"; cat buildErrors.log; exit 1; fi
+ - for file in `find . -mindepth 1 -name "*.o" ! -type l` ; do echo $file ; rm $file ; done 2>&1 > remove-build-objects.log
- cd ..
artifacts:
when: always