Add support for Git LFS in the CI pipeline

This commit updates the .gitlab-ci.yml to copy the necessary .lfsconfig and .gitattributes files to the build directory. Additionally, it appends LFS filter settings to .gitattributes to manage large file storage effectively during the build.
This commit is contained in:
DevTekVE
2024-08-03 19:21:55 +02:00
parent 57daa151cb
commit 89005e08c4
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -90,6 +90,9 @@ build:
- ls -la ${BUILD_DIR}
- "echo Building Rest..."
- ./release/release_files.py | sort | uniq | rsync -vrRl --files-from=- . $BUILD_DIR/
- cp .lfsconfig-prebuilts $BUILD_DIR/.lfsconfig
- cp .gitattributes $BUILD_DIR/.gitattributes
- echo "selfdrive/**/* filter=lfs diff=lfs merge=lfs -text" >> $BUILD_DIR/.gitattributes
# - cp -pR --parents $(cat release/files_common release/files_tici | sort | uniq) $BUILD_DIR/ 2> >(grep -v 'warning:' >&2)
- cd $BUILD_DIR
- sed -i '/from .board.jungle import PandaJungle, PandaJungleDFU/s/^/#/' panda/__init__.py # comment panda jungle when prebuilt
+4
View File
@@ -0,0 +1,4 @@
[lfs]
url = https://gitlab.com/sunnypilot/public/sunnypilot-prebuilt-lfs.git/info/lfs
pushurl = ssh://git@gitlab.com/sunnypilot/public/sunnypilot-prebuilt-lfs.git
locksverify = false