mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Change RubyGems installation to use toolset (#3474)
This commit is contained in:
@@ -4,33 +4,12 @@ source ~/utils/utils.sh
|
||||
echo Updating RubyGems...
|
||||
gem update --system
|
||||
|
||||
echo Installing xcode-install utility...
|
||||
gem install xcode-install --force
|
||||
|
||||
echo Installing CocoaPods...
|
||||
gem install cocoapods
|
||||
|
||||
if is_Less_BigSur; then
|
||||
# fix nomad-cli installation
|
||||
if is_HighSierra; then
|
||||
brew_smart_install "libxml2"
|
||||
gem install nokogiri -v 1.6.8.1 -- --use-system-libraries --with-xml2-include=$(brew --prefix libxml2)/include/libxml2
|
||||
fi
|
||||
|
||||
echo Installing nomad-cli...
|
||||
gem install nomad-cli
|
||||
gemsToInstall=$(get_toolset_value ".rubygems[]")
|
||||
if [ -n "$gemsToInstall" ]; then
|
||||
for gem in $gemsToInstall; do
|
||||
echo "Installing gem $gem"
|
||||
gem install $gem
|
||||
done
|
||||
fi
|
||||
|
||||
echo Installing xcpretty...
|
||||
gem install xcpretty
|
||||
|
||||
echo Installing bundler...
|
||||
gem install bundler --force
|
||||
|
||||
# AppStoreRelease Azure DevOps has issues with Fastlane 2.184.0. Temporary hardcoding the version until the issue is fixed
|
||||
# https://github.com/microsoft/app-store-vsts-extension/issues/244
|
||||
echo Installing fastlane tools...
|
||||
gem uninstall fastlane -aI
|
||||
gem install fastlane -v 2.183.2
|
||||
|
||||
invoke_tests "RubyGem"
|
||||
|
||||
Reference in New Issue
Block a user