Skip to content

Commit bf23fff

Browse files
committed
fix: add bundler: none to Ruby CI to avoid OpenSSL error
Set bundler: none in ruby/setup-ruby and manually install bundler after Ruby setup to avoid OpenSSL errors when the action tries to auto-install bundler on macOS runners with Ruby builds that lack OpenSSL support.
1 parent 882ebce commit bf23fff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci-ruby.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,16 @@ jobs:
145145
uses: ruby/setup-ruby@v1
146146
with:
147147
ruby-version: "3.2"
148+
bundler: none
148149
bundler-cache: false
149150
working-directory: packages/ruby
150151

152+
- name: Install Bundler
153+
shell: bash
154+
run: |
155+
gem install bundler -v '~> 4.0' --no-document || gem install bundler --no-document
156+
bundler --version
157+
151158
- name: Set BUNDLE_GEMFILE (Unix)
152159
if: runner.os != 'Windows'
153160
shell: bash
@@ -544,9 +551,16 @@ jobs:
544551
uses: ruby/setup-ruby@v1
545552
with:
546553
ruby-version: "3.2"
554+
bundler: none
547555
bundler-cache: false
548556
working-directory: packages/ruby
549557

558+
- name: Install Bundler
559+
shell: bash
560+
run: |
561+
gem install bundler -v '~> 4.0' --no-document || gem install bundler --no-document
562+
bundler --version
563+
550564
- name: Set BUNDLE_GEMFILE (Unix)
551565
if: runner.os != 'Windows'
552566
shell: bash

0 commit comments

Comments
 (0)