From 50068d0070940cd084e3a98360f302daad004995 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 9 Mar 2023 08:40:05 -0800 Subject: [PATCH] Improve robustness of iOS CircleCI Pipelines (#36419) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36419 After migrating to Xcode 14.2.0, some contributors were receiving CircleCI Machines that were not able to install Ruby 3.2.0. This change should improve the robustness of the pipelines, ensuring that `ruby-build` can always find the version of Ruby it needs ## Changelog: [internal] - Make sure CircleCI always find the right version of Ruby Reviewed By: cortinico Differential Revision: D43944878 fbshipit-source-id: 89d9fcc6ae346003e96c2a8f4103a83a7d2f3204 --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 896df666d5b..c604d0a769a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -192,6 +192,10 @@ commands: # Install the right version of ruby if [[ -z "$(rbenv versions | grep << parameters.ruby_version >>)" ]]; then + # ensure that `ruby-build` can see all the available versions of Ruby + # some PRs received machines in a weird state, this should make the pipelines + # more robust. + brew update && brew upgrade ruby-build rbenv install << parameters.ruby_version >> fi