Skip to content

Commit

Permalink
no lfs in release
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 1, 2024
1 parent 63f55f4 commit a21f773
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion release/build_devel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ cp -pR --parents $(./release/release_files.py) $TARGET_DIR/
# in the directory
cd $TARGET_DIR
rm -f panda/board/obj/panda.bin.signed
git submodule status

# include source commit hash and build date in commit
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD)
Expand All @@ -64,6 +63,13 @@ date: $DATETIME
master commit: $GIT_HASH
"

# should be no submodules or LFS files
git submodule status
if [ ! -z "$(git lfs ls-files)" ]; then
echo "LFS files detected!"
exit 1
fi

# ensure files are within GitHub's limit
BIG_FILES="$(find . -type f -not -path './.git/*' -size +95M)"
if [ ! -z "$BIG_FILES" ]; then
Expand Down
4 changes: 4 additions & 0 deletions release/release_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
".devcontainer/",
"Darwin/",
".vscode",

# no LFS
".lfsconfig",
".gitattributes",
]

# gets you through the blacklist
Expand Down

0 comments on commit a21f773

Please sign in to comment.