From a11c391231ef4438ff89bd34d21c54c8debacd0c Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Sat, 30 Mar 2019 09:57:38 +0100 Subject: [PATCH] Enable ccache for macOS CI --- CI/before_install.osx.sh | 1 + CI/before_script.osx.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CI/before_install.osx.sh b/CI/before_install.osx.sh index 895b07e1e9..3e47d11a16 100755 --- a/CI/before_install.osx.sh +++ b/CI/before_install.osx.sh @@ -6,6 +6,7 @@ brew install https://gist.githubusercontent.com/nikolaykasyanov/f36da224bdef4202 brew switch cmake 3.12.4 brew outdated pkgconfig || brew upgrade pkgconfig brew install qt +brew install ccache curl -fSL -R -J https://downloads.openmw.org/osx/dependencies/openmw-deps-110f3d3.zip -o ~/openmw-deps.zip unzip -o ~/openmw-deps.zip -d /private/tmp/openmw-deps > /dev/null diff --git a/CI/before_script.osx.sh b/CI/before_script.osx.sh index d3994a7aee..5967756ab9 100755 --- a/CI/before_script.osx.sh +++ b/CI/before_script.osx.sh @@ -10,6 +10,8 @@ cd build cmake \ -D CMAKE_PREFIX_PATH="$DEPENDENCIES_ROOT;$QT_PATH" \ +-D CMAKE_C_COMPILER_LAUNCHER=/usr/local/opt/ccache/bin/ccache \ +-D CMAKE_CXX_COMPILER_LAUNCHER=/usr/local/opt/ccache/bin/ccache \ -D CMAKE_OSX_DEPLOYMENT_TARGET="10.9" \ -D CMAKE_OSX_SYSROOT="macosx10.14" \ -D CMAKE_BUILD_TYPE=Release \