Вызов стадий сборки проекта программой cmake

This commit is contained in:
Andrei Astafev 2021-06-30 16:20:00 +03:00
parent bc6dc12be5
commit 7d6a15d63a

View File

@ -47,16 +47,16 @@ variables:
if [ -n "${BUILD_CMD}" ]; then
${BUILD_CMD}
else
ninja -v all
cmake --build .
fi
- >
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
if [ -n "${PACKAGE_CMD}" ]; then
${PACKAGE_CMD}
else
ninja -v install
ninja package
ninja package_source
cmake --install .
cmake --build . --target package
cmake --build . --target package_source
fi
fi
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
@ -104,6 +104,6 @@ variables:
mkdir build
cd build
cmake -G Ninja ..
ninja check-format-sources
cmake --build . --target check-format-sources
fi