Skip to content
Merged
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions .github/workflows/ruby-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ jobs:
with:
path: ruby/rdoc
- name: Build RDoc locally
# The `build` task provided by `require 'bundler/gem_tasks'` seems to have a bug
# as described in https://github.com/rubygems/rubygems/issues/8477
# The manual `gem build` and `gem install` are used to work around this issue.
run: |
bundle install
gem build rdoc.gemspec
gem install rdoc-*.gem
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need bundle exec ... here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think so…? I don’t usually run gem with bundle as it usually doesn’t need any of the project’s dependencies. Is it a recommended practice?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry. You're right.

Our .gemspec doesn't use external libraries. So we don't need bundle exec here.

bundle exec rake build:local_ruby
working-directory: ruby/rdoc
- name: Generate Documentation with RDoc
Expand Down
Loading