[PATCH 3/4] ci/install-dependencies: install git-lfs for arm64 build
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
ci/install-dependencies.sh | 4 ++++
ci/lib.sh | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index 9a32af8968..6d587ffc54 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -44,6 +44,10 @@ ubuntu-*)
_install_linux_git_lfs "$LFSWHENCE/v${LINUX_GIT_LFS_VERSION}" \
"git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
;;
+ aarch64)
+ _install_linux_git_lfs "$LFSWHENCE/v${LINUX_GIT_LFS_VERSION}" \
+ "git-lfs-linux-arm64-v$LINUX_GIT_LFS_VERSION.tar.gz"
+ ;;
*)
echo "Not supported architecture" >&2
exit 1
diff --git a/ci/lib.sh b/ci/lib.sh
index 661076e70b..3c19267a56 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -242,6 +242,12 @@ ubuntu-*)
# image.
# Keep that in mind when you encounter a broken OS X build!
export LINUX_GIT_LFS_VERSION="1.5.2"
+ # The Linux arm64 build installs yet another recent version, since
+ # above version doesn't ship prebuilt binaries for arm64.
+ if test "$(uname -m)" = aarch64
+ then
+ LINUX_GIT_LFS_VERSION="3.3.0"
+ fi
P4_PATH="$HOME/custom/p4"
GIT_LFS_PATH="$HOME/custom/git-lfs"
--
2.40.0.rc1.2.gd15644fe02