Skip to content

Commit b6d0336

Browse files
DX-113970 Use cmake < 4.0.0 for macOS builds
1 parent b19d038 commit b6d0336

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

dev/tasks/java-jars/github.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ jobs:
150150
# used on test We uninstall Homebrew's Protobuf to ensure using
151151
# bundled Protobuf.
152152
brew uninstall protobuf
153+
# Install compatible cmake version (< 4.0.0)
154+
brew uninstall -f cmake || true
155+
mkdir -p homebrew-custom/Formula
156+
curl -o homebrew-custom/Formula/cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/f68532bfe5cb87474093df8a839c3818c6aa44dd/Formula/c/cmake.rb
157+
brew tap-new local/homebrew-custom
158+
cp ./homebrew-custom/Formula/*.rb "$(brew --repo local/homebrew-custom)/Formula/"
159+
brew install -v local/homebrew-custom/cmake
160+
brew pin cmake
161+
#
153162
154163
brew bundle --file=arrow/java/Brewfile
155164
- name: Build C++ libraries

0 commit comments

Comments
 (0)