-
Notifications
You must be signed in to change notification settings - Fork 85
/
ci_tests.sh
executable file
·55 lines (42 loc) · 1.29 KB
/
ci_tests.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
set -e
# Add the current working directory to $PATH so that tests can find bedrock.
export PATH=$PATH:`pwd`
export CCACHE_COMPILERCHECK="mtime"
# We have include_file_ctime and include_file_mtime since travis never modifies the header file during execution
# and gh actions shouldn't care about ctime and mtime between new branches.
export CCACHE_SLOPPINESS="pch_defines,time_macros,include_file_ctime,include_file_mtime"
export CCACHE_MAXSIZE="1G"
# ccache recommends a compression level of 5 or less for faster compilations.
# Compression speeds up the tar and untar of the cache between travis runs.
export CCACHE_COMPRESS="true"
export CCACHE_COMPRESSLEVEL="1"
mark_fold() {
local action=$1
local name=$2
# if action == end, just print out ::endgroup::
if [[ "$action" == "end" ]]; then
echo ::endgroup::
return
fi
echo "::group::${name}"
}
export CC="clang-18"
export CXX="clang++-18"
# don't print out versions until after they are installed
${CC} --version
${CXX} --version
mark_fold start build_bedrock
make -j64
mark_fold end build_bedrock
mark_fold start test_bedrock
cd test
./test -threads 64
cd ..
mark_fold end test_bedrock
mark_fold start test_bedrock_cluster
cd test/clustertest
./clustertest -threads 8
cd ../..
mark_fold end test_bedrock_cluster
strip bedrock