Speed up macOS CI

- skip nonsense during package installation
- use actual number of available cores
This commit is contained in:
sfan5 2023-10-27 18:38:13 +02:00
parent 00be802c5c
commit ddce858c34
2 changed files with 6 additions and 3 deletions

@ -48,7 +48,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=../build/macos/ \ -DCMAKE_INSTALL_PREFIX=../build/macos/ \
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \ -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
-DINSTALL_DEVTEST=TRUE -DINSTALL_DEVTEST=TRUE
make -j2 cmake --build . -j$(sysctl -n hw.logicalcpu)
make install make install
- name: Test - name: Test

@ -33,8 +33,11 @@ install_macos_deps() {
cmake gettext freetype gmp jpeg-turbo jsoncpp leveldb cmake gettext freetype gmp jpeg-turbo jsoncpp leveldb
libogg libpng libvorbis luajit zstd libogg libpng libvorbis luajit zstd
) )
brew update export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install "${pkgs[@]}" export HOMEBREW_NO_INSTALL_CLEANUP=1
# contrary to how it may look --auto-update makes brew do *less*
brew update --auto-update
brew install --display-times "${pkgs[@]}"
brew unlink $(brew ls --formula) brew unlink $(brew ls --formula)
brew link "${pkgs[@]}" brew link "${pkgs[@]}"
} }