From 7996571a6d9c3c2bbc771974dfd7f7b45b7ddbde Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sun, 10 Nov 2019 16:55:24 +0000 Subject: CI: Add arm build to travis (#4422) * Add arm to travis build matrix * Pin clang-3.5 build to ubuntu trusty * Add ccache to build This explicitly excludes macOS since the images don't come with ccache installed and the install time is not justified by the time saved. --- CIbuild.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CIbuild.sh') diff --git a/CIbuild.sh b/CIbuild.sh index 024457675..9f2145624 100755 --- a/CIbuild.sh +++ b/CIbuild.sh @@ -6,7 +6,14 @@ export CUBERITE_BUILD_SERIES_NAME="Travis $CC $TRAVIS_CUBERITE_BUILD_TYPE" export CUBERITE_BUILD_ID=$TRAVIS_JOB_NUMBER export CUBERITE_BUILD_DATETIME=`date` -cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1; +# Use ccache if available +if [ `which ccache` ]; then + export CCACHE_CPP2=true + CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + echo "Using ccache installed at $(which ccache)" +fi + +cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1 ${CACHE_ARGS}; echo "Building..." cmake --build . -- -j 2; -- cgit v1.2.3