build.sh 507 B

12345678910111213141516171819202122232425262728
  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. export CC=/usr/bin/clang-14
  7. export CC_FOR_BUILD=$CC
  8. mkdir /ydbwork/build
  9. cd /ydbwork/build
  10. echo "::group::cmake"
  11. cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
  12. -DCCACHE_PATH=/usr/local/bin/ccache \
  13. -DCMAKE_TOOLCHAIN_FILE=../ydb/clang.toolchain \
  14. ../ydb
  15. echo "::endgroup::"
  16. echo "::group::ninja"
  17. #ninja ydb/apps/ydb/all
  18. ninja
  19. echo "::endgroup::"
  20. ccache -s