@@ -221,7 +221,7 @@ function gg_run_ctest_debug {
221221
222222 set -e
223223
224- # Check cmake and ctest are installed
224+ # Check required binaries are installed
225225 gg_check_build_requirements
226226
227227 (cmake -G " ${CMAKE_GENERATOR} " -DCMAKE_BUILD_TYPE=Debug ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT /${ci} -cmake.log
@@ -252,7 +252,7 @@ function gg_run_ctest_release {
252252
253253 set -e
254254
255- # Check cmake and ctest are installed
255+ # Check required binaries are installed
256256 gg_check_build_requirements
257257
258258 (cmake -G " ${CMAKE_GENERATOR} " -DCMAKE_BUILD_TYPE=Release ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT /${ci} -cmake.log
@@ -627,10 +627,38 @@ function gg_sum_rerank_tiny {
627627}
628628
629629function gg_check_build_requirements {
630+ if ! command -v git & > /dev/null; then
631+ gg_printf ' git not found, please install'
632+ fi
633+
634+ if ! command -v git-lfs & > /dev/null; then
635+ gg_printf ' git-lfs not found, please install'
636+ fi
637+
638+ if ! command -v wget & > /dev/null; then
639+ gg_printf ' wget not found, please install'
640+ fi
641+
642+ if ! command -v python3 & > /dev/null; then
643+ gg_printf ' python3 not found, please install'
644+ fi
645+
646+ if ! command -v pip3 & > /dev/null; then
647+ gg_printf ' pip3 not found, please install'
648+ fi
649+
650+ if ! python3 -m ensurepip --help & > /dev/null; then
651+ gg_printf ' ensurepip not found, please install python3-venv package'
652+ fi
653+
630654 if ! command -v cmake & > /dev/null; then
631655 gg_printf ' cmake not found, please install'
632656 fi
633657
658+ if ! command -v ccache & > /dev/null; then
659+ gg_printf ' ccache not found, please consider installing for faster builds'
660+ fi
661+
634662 if ! command -v ctest & > /dev/null; then
635663 gg_printf ' ctest not found, please install'
636664 fi
0 commit comments