mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
build_devel: check file sizes against GH limit (#25391)
* build_devel: check file sizes against GH limit * pull lfs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user