Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/setup-ruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.339.0
Choose a base ref
...
head repository: ruby/setup-ruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.340.0
Choose a head ref
  • 5 commits
  • 5 files changed
  • 4 contributors

Commits on Nov 17, 2026

  1. Add a test using setup-ruby twice in the same job

    Using setup-ruby twice in the same job (e.g. for multiple Gemfiles in a
    monorepo) was not tested, which let #444 slip through: BUNDLER_VERSION
    exported by a first setup-ruby step using Bundler 1 leaked into a second
    step, whose `bundle install` then failed with "You must use Bundler 2 or
    greater with this lockfile".
    
    The new job reproduces that scenario: a first step uses Bundler 1 via
    gemfiles/bundler1.gemfile, then a second step on the root Gemfile must
    use Bundler 2.4 (the latest Bundler for Ruby 2.7), both for the action's
    own `bundle install` and for later steps.
    
    It runs on ubuntu-24.04 since Ruby 2.7 is not available on ubuntu-26.04,
    which ubuntu-latest is moving to.
    
    Closes #445
    NopeCharon authored and eregon committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    14d556c View commit details
    Browse the repository at this point in the history
  2. Use a different Ruby version for the second setup-ruby in the same job

    Use Ruby 3.4 for the second setup-ruby step, so the test also covers
    switching Ruby versions within a job, and check with `ruby --version`
    after each step that the expected Ruby is picked.
    
    Ruby 3.4 ships with Bundler 2.6, so expect that instead of Bundler 2.4.
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    eregon and claude committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    43ef132 View commit details
    Browse the repository at this point in the history
  3. Honor $BUNDLE_JOBS for bundle install

    bundle install was always invoked with an explicit `--jobs N` (the number
    of available processors, capped at 8). Since Bundler stores command-line
    options as temporary settings, which take precedence over every other
    configuration source, this silently overrode any `BUNDLE_JOBS` set by the
    user, making it impossible to e.g. disable parallel installation.
    
    Only pass `--jobs` when `BUNDLE_JOBS` is not set, so that the `BUNDLE_*`
    environment variables recommended in the README for configuring Bundler
    also work for the number of jobs.
    
    Fixes #673
    NopeCharon authored and eregon committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    1bb4f9b View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2026

  1. Point mkmf at the vcpkg packages on mswin

    The mswin builds from cache.ruby-lang.org keep the build machine's paths out of configure_args, so extconf.rb no longer finds the vcpkg headers and libraries that ruby-loco located through --with-opt-dir. Their RbConfig also has an empty PKG_CONFIG, so mkmf ran the MSYS2 pkg-config on PATH, which pointed fiddle at the MinGW libffi headers and broke the MSVC build. ruby-loco meant to set PKG_CONFIG to the vcpkg pkgconf, but its path missed a variable and pointed nowhere.
    
    #976
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    hsbt and claude committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    69d7a0e View commit details
    Browse the repository at this point in the history
  2. Build a gem that needs vcpkg libraries on mswin in CI

    json builds without any external library, so it did not catch mkmf losing track of vcpkg.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    hsbt and claude committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    341b6d4 View commit details
    Browse the repository at this point in the history
Loading