mirror of
https://github.com/minetest/minetest.git
synced 2024-08-19 21:14:15 +02:00
Speed up macOS CI
- skip nonsense during package installation - use actual number of available cores
This commit is contained in:
parent
00be802c5c
commit
ddce858c34
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -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[@]}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user