Install CMake on Windows replying yes to the prompt (#42926)

Summary:
CircleCI is failing because chocolatey started asking for user input in CI. This change should allow CI to proceed.

## Changelog:
[Internal] - Fix CI on Windows

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

Test Plan: CircleCI is green

Reviewed By: cortinico

Differential Revision: D53576331

Pulled By: cipolleschi

fbshipit-source-id: 990a195618140263001ffce3e5c17240cc679aa7
This commit is contained in:
Riccardo Cipolleschi 2024-02-08 09:21:38 -08:00 committed by Facebook GitHub Bot
parent eb619468c1
commit 527d1931b1

View File

@ -622,7 +622,7 @@ jobs:
- run:
name: Install Node JS
# Note: Version set separately for non-Windows builds, see above.
command: choco install nodejs --version=18.18.0 --allow-downgrade
command: choco install nodejs --version=18.18.0 --allow-downgrade -y
# Setup Dependencies
- run:
@ -1100,7 +1100,7 @@ jobs:
name: Build HermesC for Windows
command: |
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 -y
if (-not $?) { throw "Failed to install CMake" }
cd $Env:HERMES_WS_DIR\icu