build.sh 604 B

123456789101112131415161718192021222324252627
  1. set -e
  2. export CONAN_USER_HOME=/ydbwork/build
  3. export CCACHE_SLOPPINESS=locale
  4. export CCACHE_BASEDIR=/ydbwork/
  5. export CONAN_USER_HOME=/ydbwork/build
  6. mkdir /ydbwork/build
  7. cd /ydbwork/build
  8. echo "::group::cmake"
  9. cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
  10. -DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
  11. -DCMAKE_TOOLCHAIN_FILE=../ydb/clang.toolchain \
  12. -DCMAKE_C_FLAGS_RELEASE="-O2 -UNDEBUG" \
  13. -DCMAKE_CXX_FLAGS_RELEASE="-O2 -UNDEBUG" \
  14. ../ydb
  15. echo "::endgroup::"
  16. echo "::group::ninja"
  17. #ninja ydb/apps/ydb/all
  18. ninja
  19. echo "::endgroup::"
  20. ccache -s