Skip to content

Commit ecb0fee

Browse files
committed
Install CMake 3.22
1 parent 0f98a0e commit ecb0fee

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/check.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ jobs:
123123
with:
124124
java-version: "17"
125125
distribution: "temurin"
126+
- name: Install compatible CMake version
127+
run: |
128+
# Install CMake 3.22.1 since 4.x may have compatibility issues with Hermes build system
129+
brew unlink cmake || true
130+
brew install cmake@3.22
131+
brew link cmake@3.22 --force
132+
cmake --version
126133
- name: Debug environment before build
127134
run: |
128135
echo "=== Xcode and build tools ==="
@@ -137,11 +144,6 @@ jobs:
137144
echo "CMAKE_BINARY=$CMAKE_BINARY"
138145
echo "=== CMake version ==="
139146
cmake --version || echo "cmake command failed"
140-
- name: Set required environment variables for Hermes build
141-
run: |
142-
# React Native's Hermes build script expects CMAKE_BINARY to be set
143-
# Without it, the PATH preservation in env -i fails
144-
echo "CMAKE_BINARY=$(which cmake)" >> $GITHUB_ENV
145147
- run: npm ci
146148
- run: npm run bootstrap
147149
env:

0 commit comments

Comments
 (0)