Skip to content

Commit db4cd97

Browse files
committed
[LOCAL] Downgrade CMake for Mac machines, take2
1 parent e9f93b5 commit db4cd97

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/actions/build-hermesc-apple/action.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,23 @@ runs:
1717
with:
1818
path: ./packages/react-native/sdks/hermes/build_host_hermesc
1919
key: v2-hermesc-apple-${{ inputs.hermes-version }}-${{ inputs.react-native-version }}
20+
- name: BEFORE - Check Cmake version
21+
shell: bash
22+
run: |
23+
cmake --version
2024
- name: Downgrade CMake
2125
shell: bash
22-
uses: jwlawson/actions-setup-cmake@v2
23-
with:
24-
cmake-version: '3.28.3'
25-
- name: Use cmake
26+
run: |
27+
# Uninstall any existing CMake version
28+
brew uninstall --ignore-dependencies cmake || true
29+
# Install specific CMake version (e.g., 3.21.4)
30+
brew install [email protected]
31+
# Add the specific CMake version to PATH
32+
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> $GITHUB_ENV
33+
- name: AFTER - Check Cmake version
2634
shell: bash
27-
run: cmake --version
35+
run: |
36+
cmake --version
2837
- name: Build HermesC Apple
2938
shell: bash
3039
run: |

0 commit comments

Comments
 (0)