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 167968c commit 3d8e656
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 @@ -32,6 +32,18 @@ jobs:
- { os: macos-latest, ruby: "2.3" }
- { os: macos-latest, ruby: "2.4" }
- { os: macos-latest, ruby: "2.5" }

# 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@v4
Expand Down

0 comments on commit 3d8e656

Please sign in to comment.