speedup macOS build

brew update is just dead slow on older travis images
This commit is contained in:
Frank Morgner 2020-11-23 14:18:45 +01:00
parent 0e55a3497c
commit e13294b085
1 changed files with 14 additions and 11 deletions

View File

@ -68,14 +68,21 @@ addons:
- cmake - cmake
before_install: before_install:
# brew install gengetopt help2man cmocka ccache llvm; # homebrew is dead slow in older images due to the many updates it would need to download and build.
# export PATH="/usr/local/opt/ccache/libexec:/usr/local/opt/llvm/bin:$PATH"; # here, we build the additional dependencies manually to get around this
# add magic notarization flags for macOS, see https://github.com/akeru-inc/xcnotary/blob/master/README.md
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update; curl https://ftp.gnu.org/gnu/gengetopt/gengetopt-2.23.tar.xz -L --output gengetopt-2.23.tar.xz;
brew uninstall libtool; tar xfj gengetopt-2.23.tar.xz;
brew install libtool; pushd gengetopt-2.23;
brew install gengetopt help2man cmocka ccache git-lfs; ./configure && make;
sudo make install;
popd;
curl https://ftp.gnu.org/gnu/help2man/help2man-1.47.16.tar.xz -L --output help2man-1.47.16.tar.xz;
tar xjf help2man-1.47.16.tar.xz;
pushd help2man-1.47.16;
./configure && make;
sudo make install;
popd;
export PATH="/usr/local/opt/ccache/libexec:$PATH"; export PATH="/usr/local/opt/ccache/libexec:$PATH";
git clone https://github.com/frankmorgner/OpenSCToken.git; git clone https://github.com/frankmorgner/OpenSCToken.git;
fi fi
@ -352,15 +359,11 @@ after_script:
rm -f .github/secrets.tar; rm -f .github/secrets.tar;
fi fi
before_cache:
- brew cleanup
cache: cache:
apt: true apt: true
ccache: true ccache: true
directories: directories:
- $HOME/.m2/ - $HOME/.m2/
- $HOME/Library/Caches/Homebrew
- openssl_bin - openssl_bin
- openpace_bin - openpace_bin
- isetup - isetup