Skip to content

Commit da4080f

Browse files
committed
Lock cmake to <= 3.x.x to avoid backwards compatibility problems with 4.x.x
1 parent 247c76d commit da4080f

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.github/workflows/arm-macos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
run: brew update
4343

4444
- name: Install dependencies
45-
run: brew bundle install --file=./toolchains/macos/Brewfile
45+
shell: bash
46+
run: ./toolchains/macos/install_packages.sh
4647

4748
- name: Install python mako
4849
run: pip3 install mako --break-system-packages

.github/workflows/x86-macos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
run: brew update
4343

4444
- name: Install dependencies
45-
run: brew bundle install --file=./toolchains/macos/Brewfile
45+
shell: bash
46+
run: ./toolchains/macos/install_packages.sh
4647

4748
- name: Install python mako
4849
run: pip3 install mako

toolchains/macos/Brewfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

toolchains/macos/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Clone the repository recursively so all the submodules are installed.
44

55
## Steps
66
1. Update brew: ```brew update```
7-
2. Install packages: ```brew bundle install --file=./toolchains/macos/Brewfile```
7+
2. Install packages: ```./toolchains/macos/install_packages.sh```
88
3. Install mako: ```pip3 install mako```
99
4. Install volk:
1010
- Change to volk: ```cd vendor/volk```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
# install specific version of cmake 3.x.x since 4.x.x is not backwards compatible with < 3.5
3+
# need to pass special flags and environment variables so brew treats local file as formula instead of a local cask or remote url
4+
wget -O ./cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/14ea6eca0e0b0b4f76940f1f7a929869d5a49930/Formula/c/cmake.rb
5+
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source ./cmake.rb
6+
brew install fftw
7+
brew install pkg-config
8+
brew install glfw
9+
brew install zstd
10+
brew install ninja

0 commit comments

Comments
 (0)