Skip to content

Commit

Permalink
Exclude ubuntu-22.04 / ruby 2.2 from CI
Browse files Browse the repository at this point in the history
This avoids the following error:
     Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2
     /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0
     ERROR:  While executing gem ... (RuntimeError)
         Marshal.load reentered at marshal_load

See ruby/setup-ruby#496

This works fine on ubuntu 20.04 and 24.04.
  • Loading branch information
nevans committed Sep 3, 2024
1 parent 5de0c23 commit 6941226
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
- { os: windows-2019, ruby: mingw }
exclude:
- { os: windows-2019, ruby: head }

# Avoids the following error:
# Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2
# /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0
# ERROR: While executing gem ... (RuntimeError)
# Marshal.load reentered at marshal_load
#
# See https://github.com/ruby/setup-ruby/issues/496
#
# This works fine on ubuntu 20.04 and 24.04.
- { os: ubuntu-22.04, ruby: '2.2' }

steps:
- name: repo checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 6941226

Please sign in to comment.