Skip to content

Commit ab26a44

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ jobs:
123123
with:
124124
java-version: "17"
125125
distribution: "temurin"
126+
# Install CMake 3.22.1 since 4.x may have compatibility issues with Hermes build system
127+
- name: Install compatible CMake version
128+
uses: jwlawson/actions-setup-cmake@v2
129+
with:
130+
cmake-version: "3.22.1"
126131
- name: Debug environment before build
127132
run: |
128133
echo "=== Xcode and build tools ==="
@@ -137,11 +142,6 @@ jobs:
137142
echo "CMAKE_BINARY=$CMAKE_BINARY"
138143
echo "=== CMake version ==="
139144
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
145145
- run: npm ci
146146
- run: npm run bootstrap
147147
env:

0 commit comments

Comments
 (0)