Skip to content

Commit d5ec331

Browse files
st0012kou
andauthored
Workaround build task issue in Ruby core CI (ruby#1326)
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. --------- Co-authored-by: Sutou Kouhei <[email protected]>
1 parent 1e3ed08 commit d5ec331

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ruby-core.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@ 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+
# This gem isn't used for generating Ruby documentation.
60+
# This is just for fixing `pkg/rdoc-X.Y.Z.gem` path.
61+
gem install rdoc-*.gem
5562
bundle exec rake build:local_ruby
5663
working-directory: ruby/rdoc
5764
- name: Generate Documentation with RDoc

0 commit comments

Comments
 (0)