mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
24 lines
721 B
Bash
24 lines
721 B
Bash
#!/bin/bash -e -o pipefail
|
|
################################################################################
|
|
## File: install-rubygems.sh
|
|
## Desc: Install RubyGems
|
|
################################################################################
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
echo "Updating RubyGems..."
|
|
gem update --system
|
|
|
|
# Temporarily install activesupport 7.2.2.1 due to compatibility issues with cocoapods https://github.com/CocoaPods/CocoaPods/issues/12081
|
|
gem install activesupport -v 7.2.2.1
|
|
|
|
gemsToInstall=$(get_toolset_value '.ruby.rubygems | .[]')
|
|
if [[ -n $gemsToInstall ]]; then
|
|
for gem in $gemsToInstall; do
|
|
echo "Installing gem $gem"
|
|
gem install $gem
|
|
done
|
|
fi
|
|
|
|
invoke_tests "RubyGem"
|