add info checker.
Some checks failed
Deploy Applications / PullDocker (push) Failing after 9s
Deploy Applications / Build (push) Failing after 4s
Windows CI / build (push) Has been cancelled

This commit is contained in:
2025-11-10 19:29:40 +08:00
parent 8c2c912d3a
commit 482e5495f0
4 changed files with 132 additions and 10 deletions

View File

@@ -2,13 +2,7 @@
base_path=$(pwd)
build_path=${base_path}/build
libraries_root="/opt/Libraries"
if command -v cmake >/dev/null 2>&1; then
cmake_exe=cmake
else
cmake_exe=/opt/Qt/Tools/CMake/bin/cmake
fi
libraries_root="/opt/3rdparty"
function cmake_scan() {
echo "scanning the project..."
@@ -16,7 +10,7 @@ function cmake_scan() {
mkdir -p ${build_path}
fi
cd ${build_path}
${cmake_exe} -G Ninja -S ${base_path} -B ${build_path} \
cmake -G Ninja -S ${base_path} -B ${build_path} \
-DCMAKE_BUILD_TYPE=Debug \
-DMbedTLS_DIR=${libraries_root}/mbedtls-3.6.5/lib/cmake/MbedTLS \
-Dnng_DIR=${libraries_root}/nng-1.11/lib/cmake/nng \
@@ -31,7 +25,7 @@ function build() {
if [ $? -ne 0 ]; then
exit 1
fi
${cmake_exe} --build ${build_path} --target all
cmake --build ${build_path} --target all
if [ $? -ne 0 ]; then
exit 1
fi