build_devel: check file sizes against GH limit (#25391)

* build_devel: check file sizes against GH limit

* pull lfs
old-commit-hash: ce1e40285b
taco
Adeeb Shihadeh 3 years ago committed by GitHub
parent 5066d2c04c
commit 700d1362af
  1. 2
      .github/workflows/selfdrive_tests.yaml
  2. 9
      release/build_devel.sh

@ -39,6 +39,8 @@ jobs:
with:
fetch-depth: 0
submodules: true
- name: Pull LFS
run: git lfs pull
- name: Check submodules
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
run: release/check-submodules.sh

@ -69,6 +69,15 @@ date: $DATETIME
master commit: $GIT_HASH
"
# ensure files are within GitHub's limit
BIG_FILES="$(find . -type f -not -path './.git/*' -size +95M)"
if [ ! -z "$BIG_FILES" ]; then
printf '\n\n\n'
echo "Found files exceeding GitHub's 100MB limit:"
echo "$BIG_FILES"
exit 1
fi
if [ ! -z "$BRANCH" ]; then
echo "[-] Pushing to $BRANCH T=$SECONDS"
git push -f origin master-ci:$BRANCH

Loading…
Cancel
Save