diff --git a/.github/workflows/ruby-core.yml b/.github/workflows/ruby-core.yml index d4d0827925..3fe8ded5f9 100644 --- a/.github/workflows/ruby-core.yml +++ b/.github/workflows/ruby-core.yml @@ -50,8 +50,15 @@ 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 + # This gem isn't used for generating Ruby documentation. + # This is just for fixing `pkg/rdoc-X.Y.Z.gem` path. + gem install rdoc-*.gem bundle exec rake build:local_ruby working-directory: ruby/rdoc - name: Generate Documentation with RDoc