Skip to content

Commit

Permalink
Speed up macOS CI
Browse files Browse the repository at this point in the history
- skip nonsense during package installation
- use actual number of available cores
  • Loading branch information
sfan5 committed Oct 27, 2023
1 parent 00be802 commit ddce858
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Expand Up @@ -48,7 +48,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
-DINSTALL_DEVTEST=TRUE
make -j2
cmake --build . -j$(sysctl -n hw.logicalcpu)
make install
- name: Test
Expand Down
7 changes: 5 additions & 2 deletions util/ci/common.sh
Expand Up @@ -33,8 +33,11 @@ install_macos_deps() {
cmake gettext freetype gmp jpeg-turbo jsoncpp leveldb
libogg libpng libvorbis luajit zstd
)
brew update
brew install "${pkgs[@]}"
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
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 link "${pkgs[@]}"
}

0 comments on commit ddce858

Please sign in to comment.