Skip to content

Commit f1bda4c

Browse files
DX-113970 Fix cmake and boost dependencies for macOS builds
1 parent b19d038 commit f1bda4c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

dev/tasks/java-jars/github.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,19 @@ jobs:
150150
# used on test We uninstall Homebrew's Protobuf to ensure using
151151
# bundled Protobuf.
152152
brew uninstall protobuf
153+
# fix cmake and boost versionsAdd commentMore actions
154+
brew uninstall -f boost || true
155+
brew uninstall -f cmake || true
156+
mkdir -p homebrew-custom/Formula
157+
curl -o homebrew-custom/Formula/cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/f68532bfe5cb87474093df8a839c3818c6aa44dd/Formula/c/cmake.rb
158+
curl -o homebrew-custom/Formula/boost.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/23f9c56c5075dd56b4471e2c93f89f6400b49ddd/Formula/b/boost.rb
159+
brew tap-new local/homebrew-custom
160+
cp ./homebrew-custom/Formula/*.rb "$(brew --repo local/homebrew-custom)/Formula/"
161+
brew install -v local/homebrew-custom/cmake
162+
brew install -v local/homebrew-custom/boost
163+
brew pin cmake
164+
brew pin boost
165+
#
153166
154167
brew bundle --file=arrow/java/Brewfile
155168
- name: Build C++ libraries

0 commit comments

Comments
 (0)