-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
664d805
commit ebf5a2d
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
export CXX=g++-13 | ||
export CC=gcc-13 | ||
|
||
# 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}" | ||
} | ||
|
||
# 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 |