Added checks for cmake,make and ctest
This commit is contained in:
parent
8748d8ac6f
commit
a5870ba3ef
1 changed files with 22 additions and 0 deletions
22
ci/run.sh
22
ci/run.sh
|
@ -103,6 +103,9 @@ function gg_run_ctest_debug {
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Check cmake, make and ctest are installed
|
||||||
|
gg_check_build_requirements
|
||||||
|
|
||||||
(time cmake -DCMAKE_BUILD_TYPE=Debug ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT/${ci}-cmake.log
|
(time cmake -DCMAKE_BUILD_TYPE=Debug ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT/${ci}-cmake.log
|
||||||
(time make -j ) 2>&1 | tee -a $OUT/${ci}-make.log
|
(time make -j ) 2>&1 | tee -a $OUT/${ci}-make.log
|
||||||
|
|
||||||
|
@ -131,6 +134,9 @@ function gg_run_ctest_release {
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Check cmake, make and ctest are installed
|
||||||
|
gg_check_build_requirements
|
||||||
|
|
||||||
(time cmake -DCMAKE_BUILD_TYPE=Release ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT/${ci}-cmake.log
|
(time cmake -DCMAKE_BUILD_TYPE=Release ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT/${ci}-cmake.log
|
||||||
(time make -j ) 2>&1 | tee -a $OUT/${ci}-make.log
|
(time make -j ) 2>&1 | tee -a $OUT/${ci}-make.log
|
||||||
|
|
||||||
|
@ -701,6 +707,20 @@ function gg_run_embd_bge_small {
|
||||||
set +e
|
set +e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function gg_check_build_requirements {
|
||||||
|
if ! command -v cmake &> /dev/null; then
|
||||||
|
gg_printf 'cmake not found, please install'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v make &> /dev/null; then
|
||||||
|
gg_printf 'make not found, please install'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v ctest &> /dev/null; then
|
||||||
|
gg_printf 'ctest not found, please install'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function gg_sum_embd_bge_small {
|
function gg_sum_embd_bge_small {
|
||||||
gg_printf '### %s\n\n' "${ci}"
|
gg_printf '### %s\n\n' "${ci}"
|
||||||
|
|
||||||
|
@ -727,6 +747,8 @@ if [ -z ${GG_BUILD_LOW_PERF} ]; then
|
||||||
pip install --editable gguf-py --disable-pip-version-check
|
pip install --editable gguf-py --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
|
|
||||||
test $ret -eq 0 && gg_run ctest_debug
|
test $ret -eq 0 && gg_run ctest_debug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue