diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 8304582620..7397e30f83 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -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 diff --git a/release/build_devel.sh b/release/build_devel.sh index 9d8b06451b..f06e3102c8 100755 --- a/release/build_devel.sh +++ b/release/build_devel.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