References: <20171121063618.13749-1-chipitsine@...277...> From: Steffan Karger Message-ID: <70f5d18c-3bbe-0c14-eb0f-54bc10d6019f@...1856...> Date: Sat, 30 Dec 2017 12:19:36 +0100 MIME-Version: 1.0 In-Reply-To: <20171121063618.13749-1-chipitsine@...277...> Content-Language: en-US Subject: Re: [Openvpn-devel] [PATCH] travis-ci: enable ccache for osx and mingw builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: openvpn-devel@lists.sourceforge.net Hi, Sorry for taking so long to respond. On 21-11-17 07:36, Ilya Shipitsin wrote: > -- > ccache was now tested by me and works for osx > and mingw builds as well By how much does this improve build times? I'm asking, because I recently noticed that brew on the osx slaves takes a serious amount of time. So I was wondering if we shouldn't try to avoid any brew operations for the osx builds. > --- > .travis.yml | 2 +- > .travis/build-deps.sh | 14 ++++++-------- > 2 files changed, 7 insertions(+), 9 deletions(-) > > diff --git a/.travis.yml b/.travis.yml > index 366e6599..8efb1cbd 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -88,7 +88,7 @@ cache: > > before_install: > - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update ; fi > - - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo; fi > + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo ccache; fi Before adding ccache here, we could reduce the build time by three minutes using --disable-lzo. > > install: > - if [ ! -z "${CHOST}" ]; then unset CC; fi > diff --git a/.travis/build-deps.sh b/.travis/build-deps.sh > index e787abab..001565f3 100755 > --- a/.travis/build-deps.sh > +++ b/.travis/build-deps.sh > @@ -130,15 +130,13 @@ build_openssl () { > fi > } > > -# Enable ccache > -if [ "${TRAVIS_OS_NAME}" != "osx" ] && [ -z ${CHOST+x} ]; then > - # ccache not available on osx, see: > - # https://github.com/travis-ci/travis-ci/issues/5567 > - # also ccache not enabled for cross builds > - mkdir -p "${HOME}/bin" > - ln -s "$(which ccache)" "${HOME}/bin/${CC}" > - PATH="${HOME}/bin:${PATH}" > +mkdir -p "${HOME}/bin" > +if [ -z ${CHOST+x} ]; then > + ln -s "$(which ccache)" "${HOME}/bin/${CC}" > +else > + ln -s "$(which ccache)" "${HOME}/bin/${CHOST}-cc" > fi > +PATH="${HOME}/bin:${PATH}" > > if [ ! -z ${CHOST+x} ]; then > # > Code-wise the patch looks good. But curious about your thought on the above. -Steffan