Skip to content

Commit

Permalink
Improve robustness of iOS CircleCI Pipelines (facebook#36419)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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
  • Loading branch information
cipolleschi authored and OlimpiaZurek committed May 22, 2023
1 parent 3697b72 commit 1da2f62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1da2f62

Please sign in to comment.