Skip to content

Commit 58f04c4

Browse files
committed
Workaround build task issue in Ruby core CI
The issue is described in ruby/rubygems#8477 The issue fails the workflow whenever RDoc's version is bumped as there will then be a mismatch between the target file name and the version that's actually built. For example: ``` rdoc 6.13.0 built to pkg/rdoc-6.12.0.gem. ``` This commit works around the issue by manually building the gem and installing it locally so the latest installed version will match the version contained in the gemspec file.
1 parent 1e3ed08 commit 58f04c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ruby-core.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ jobs:
5050
with:
5151
path: ruby/rdoc
5252
- name: Build RDoc locally
53+
# The `build` task provided by `require 'bundler/gem_tasks'` seems to have a bug
54+
# as described in https://github.com/rubygems/rubygems/issues/8477
55+
# The manual `gem build` and `gem install` are used to work around this issue.
5356
run: |
5457
bundle install
58+
gem build rdoc.gemspec
59+
gem install rdoc-*.gem
5560
bundle exec rake build:local_ruby
5661
working-directory: ruby/rdoc
5762
- name: Generate Documentation with RDoc

0 commit comments

Comments
 (0)