0bd2979c04
* Switching cache from local to Radis * sccache -s won't work. All the images are taken from own registry * new images addresses * statisticss after stop sccache server sccache CC&CXX
22 lines
535 B
Bash
Executable File
22 lines
535 B
Bash
Executable File
#!/bin/bash
|
|
echo "________Running test-cpp.sh________"
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
#use nproc `linux only
|
|
THREADS=$(nproc)
|
|
export CC="sccache gcc"
|
|
export CXX="sccache g++"
|
|
|
|
echo "________Running the C++ example________"
|
|
DIR=parity-clib/examples/cpp/build
|
|
mkdir -p $DIR
|
|
cd $DIR
|
|
cmake ..
|
|
make VERBOSE=1 -j $THREADS
|
|
# Note: we don't try to run the example because it tries to sync Kovan, and we don't want
|
|
# that to happen on CI
|
|
cd -
|
|
rm -rf $DIR
|
|
#show sccache statistics
|
|
sccache --stop-server
|