Генератор для cmake задаётся переменной окружения
This commit is contained in:
parent
7d6a15d63a
commit
dba70c08c7
@ -3,6 +3,8 @@ variables:
|
||||
GET_SOURCES_ATTEMPTS: 10
|
||||
|
||||
.scheduled-test:
|
||||
variables:
|
||||
CMAKE_GENERATOR: Ninja
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||
- if: $CI_MERGE_REQUEST_ID
|
||||
@ -41,7 +43,7 @@ variables:
|
||||
if [ -n "${CONFIGURE_CMD}" ]; then
|
||||
${CONFIGURE_CMD}
|
||||
else
|
||||
cmake -G Ninja -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
|
||||
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
|
||||
fi
|
||||
- >
|
||||
if [ -n "${BUILD_CMD}" ]; then
|
||||
@ -94,6 +96,8 @@ variables:
|
||||
tags: ['elbrus']
|
||||
|
||||
.check-format-sources:
|
||||
variables:
|
||||
CMAKE_GENERATOR: Ninja
|
||||
image: focal-dev
|
||||
tags: ['docker']
|
||||
script:
|
||||
@ -103,7 +107,7 @@ variables:
|
||||
else
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G Ninja ..
|
||||
cmake ..
|
||||
cmake --build . --target check-format-sources
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user