From db4cd9750d202f6f6ac09d2cd090862df3462e75 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 20 Oct 2025 14:17:01 +0100 Subject: [PATCH] [LOCAL] Downgrade CMake for Mac machines, take2 --- .../actions/build-hermesc-apple/action.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/actions/build-hermesc-apple/action.yml b/.github/actions/build-hermesc-apple/action.yml index 5ac808b6dba..6a83d36ed6b 100644 --- a/.github/actions/build-hermesc-apple/action.yml +++ b/.github/actions/build-hermesc-apple/action.yml @@ -17,14 +17,23 @@ runs: with: path: ./packages/react-native/sdks/hermes/build_host_hermesc key: v2-hermesc-apple-${{ inputs.hermes-version }}-${{ inputs.react-native-version }} + - name: BEFORE - Check Cmake version + shell: bash + run: | + cmake --version - name: Downgrade CMake shell: bash - uses: jwlawson/actions-setup-cmake@v2 - with: - cmake-version: '3.28.3' - - name: Use cmake + run: | + # Uninstall any existing CMake version + brew uninstall --ignore-dependencies cmake || true + # Install specific CMake version (e.g., 3.21.4) + brew install cmake@3.28 + # Add the specific CMake version to PATH + echo 'export PATH="/usr/local/opt/cmake@3.28/bin:$PATH"' >> $GITHUB_ENV + - name: AFTER - Check Cmake version shell: bash - run: cmake --version + run: | + cmake --version - name: Build HermesC Apple shell: bash run: |