Allow downgrading CMake to build hermesc on Windows (#47867)

Summary:
CI is failing to build HermesC on windows due to a version mismatch of the CMake already installed

## Changelog:
[Internal] - Fix Windows CI for HermesC

Pull Request resolved: https://github.com/facebook/react-native/pull/47867

Test Plan: GHA

Reviewed By: robhogan

Differential Revision: D66292617

Pulled By: cipolleschi

fbshipit-source-id: 5e8f4f45e33fbdd9ff163b4e8a09cb98d4366dc7
This commit is contained in:
Riccardo Cipolleschi 2024-11-21 02:20:30 -08:00 committed by Facebook GitHub Bot
parent ac0dbe1ea2
commit 0eb9472c69

View File

@ -43,7 +43,7 @@ runs:
shell: powershell shell: powershell
run: | run: |
if (-not(Test-Path -Path $Env:HERMES_WS_DIR\win64-bin\hermesc.exe)) { if (-not(Test-Path -Path $Env:HERMES_WS_DIR\win64-bin\hermesc.exe)) {
choco install --no-progress cmake --version 3.14.7 choco install --no-progress cmake --version 3.14.7 --allow-downgrade
if (-not $?) { throw "Failed to install CMake" } if (-not $?) { throw "Failed to install CMake" }
cd $Env:HERMES_WS_DIR\icu cd $Env:HERMES_WS_DIR\icu