Skip to content

Commit

Permalink
chore: shallow clone camera-streamer submodules (#226)
Browse files Browse the repository at this point in the history
This reduces the download size and disk usage for `camera-streamer`.
  • Loading branch information
mryel00 authored Jan 7, 2024
1 parent fd22d11 commit 0b4cf6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ clone_cstreamer() {
git clone "${CROWSNEST_CAMERA_STREAMER_REPO_SHIP}" \
-b "${CROWSNEST_CAMERA_STREAMER_REPO_BRANCH}" \
"${BASE_CN_BIN_PATH}"/"${CSTREAMER_PATH}" \
"${CLONE_FLAGS[@]}" --recursive
"${CLONE_FLAGS[@]}" --recurse-submodules --shallow-submodules
}

### Clone Apps
Expand Down
3 changes: 2 additions & 1 deletion tools/libs/build_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ clone_cstreamer() {
rm -rf bin/camera-streamer
fi
sudo -u "${BASE_USER}" \
git clone "${CROWSNEST_CAMERA_STREAMER_REPO_SHIP}" --recursive \
git clone "${CROWSNEST_CAMERA_STREAMER_REPO_SHIP}" \
--recurse-submodules --shallow-submodules \
-b "${CROWSNEST_CAMERA_STREAMER_REPO_BRANCH}" \
--depth=1 --single-branch bin/camera-streamer
}
Expand Down

0 comments on commit 0b4cf6f

Please sign in to comment.