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

* build_devel: check file sizes against GH limit

* pull lfs
pull/25400/head
Adeeb Shihadeh 3 years ago committed by GitHub
parent 2a4020da60
commit ce1e40285b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/selfdrive_tests.yaml
  2. 9
      release/build_devel.sh

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

@ -69,6 +69,15 @@ date: $DATETIME
master commit: $GIT_HASH 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 if [ ! -z "$BRANCH" ]; then
echo "[-] Pushing to $BRANCH T=$SECONDS" echo "[-] Pushing to $BRANCH T=$SECONDS"
git push -f origin master-ci:$BRANCH git push -f origin master-ci:$BRANCH

Loading…
Cancel
Save