Вызов стадий сборки проекта программой cmake
This commit is contained in:
parent
bc6dc12be5
commit
7d6a15d63a
@ -47,16 +47,16 @@ variables:
|
|||||||
if [ -n "${BUILD_CMD}" ]; then
|
if [ -n "${BUILD_CMD}" ]; then
|
||||||
${BUILD_CMD}
|
${BUILD_CMD}
|
||||||
else
|
else
|
||||||
ninja -v all
|
cmake --build .
|
||||||
fi
|
fi
|
||||||
- >
|
- >
|
||||||
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
|
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
|
||||||
if [ -n "${PACKAGE_CMD}" ]; then
|
if [ -n "${PACKAGE_CMD}" ]; then
|
||||||
${PACKAGE_CMD}
|
${PACKAGE_CMD}
|
||||||
else
|
else
|
||||||
ninja -v install
|
cmake --install .
|
||||||
ninja package
|
cmake --build . --target package
|
||||||
ninja package_source
|
cmake --build . --target package_source
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
||||||
@ -104,6 +104,6 @@ variables:
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -G Ninja ..
|
cmake -G Ninja ..
|
||||||
ninja check-format-sources
|
cmake --build . --target check-format-sources
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user