aboutsummaryrefslogtreecommitdiffstats
path: root/.github/prewarm/build.sh
blob: 2bc01d9896f6c6452416403ba336d572471fb410 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
set -e

export CONAN_USER_HOME=/ydbwork/build
export CCACHE_SLOPPINESS=locale
export CCACHE_BASEDIR=/ydbwork/

export CONAN_USER_HOME=/ydbwork/build

export CC=/usr/bin/clang-14
export CC_FOR_BUILD=$CC

mkdir /ydbwork/build
cd /ydbwork/build

echo "::group::cmake"
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_TOOLCHAIN_FILE=../ydb/clang.toolchain \
-DCMAKE_C_FLAGS_RELEASE="-O2 -UNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-O2 -UNDEBUG" \
../ydb
echo "::endgroup::"


echo "::group::ninja"
#ninja ydb/apps/ydb/all
ninja
echo "::endgroup::"

ccache -s