mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-08 19:25:42 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user