mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
check for cmake after installind packges, because CI doesn't care about cmake during build, only installing packages step
This commit is contained in:
parent
ef7801922a
commit
4a7fedecd0
@ -26,11 +26,6 @@ third_party_deps_dir="$third_party_dir/deps/linux"
|
|||||||
third_party_common_dir="$third_party_dir/deps/common/src"
|
third_party_common_dir="$third_party_dir/deps/common/src"
|
||||||
mycmake="$third_party_deps_dir/cmake-3.27.7-linux-x86_64/bin/cmake"
|
mycmake="$third_party_deps_dir/cmake-3.27.7-linux-x86_64/bin/cmake"
|
||||||
|
|
||||||
[[ -f "$mycmake" ]] || {
|
|
||||||
echo "[X] Couldn't find cmake" >&2;
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# < 0: deduce, > 1: force
|
# < 0: deduce, > 1: force
|
||||||
PARALLEL_THREADS_OVERRIDE=-1
|
PARALLEL_THREADS_OVERRIDE=-1
|
||||||
VERBOSITY=''
|
VERBOSITY=''
|
||||||
@ -84,6 +79,11 @@ last_code=$((last_code + $?))
|
|||||||
echo ; echo
|
echo ; echo
|
||||||
|
|
||||||
|
|
||||||
|
[[ -f "$mycmake" ]] || {
|
||||||
|
echo "[X] Couldn't find cmake" >&2;
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
# use 70%
|
# use 70%
|
||||||
build_threads="$(( $(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 0) * 70 / 100 ))"
|
build_threads="$(( $(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 0) * 70 / 100 ))"
|
||||||
[[ $PARALLEL_THREADS_OVERRIDE -gt 0 ]] && build_threads="$PARALLEL_THREADS_OVERRIDE"
|
[[ $PARALLEL_THREADS_OVERRIDE -gt 0 ]] && build_threads="$PARALLEL_THREADS_OVERRIDE"
|
||||||
|
Loading…
Reference in New Issue
Block a user