Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ubuntu runner #102

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
jobs:
rubocop:
name: Rubocop
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
20 changes: 17 additions & 3 deletions script/update_rubygems_and_install_bundler
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

set -e

echo "Installing latest rubygems / bundler"
yes | gem update --system
yes | gem install bundler
function is_ruby_31_plus {
if ruby -e "exit(RUBY_VERSION.to_f >= 3.1)"; then
return 0
else
return 1
fi
}

if is_ruby_31_plus; then
echo "Installing latest rubygems / bundler"
yes | gem update --system
yes | gem install bundler
else
echo "Installing rubygems 3.2.22 / bundler 2.2.22"
yes | gem update --system '3.2.22'
yes | gem install bundler -v '2.2.22'
fi
Loading