Skip to content

Commit 1b16fe6

Browse files
authored
Update ruby-core workflow to just generate documentation (#1278)
Since RDoc is now a bundled gem, we don't need to run test with Ruby core with it commit by commit. But it'd still be beneficial to generate documentation with the current RDoc commit and the Ruby master branch. So this PR updates the Ruby core workflow to just do that.
1 parent b8933c2 commit 1b16fe6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ruby-core.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
1515

1616
jobs:
1717
ruby_core:
18-
name: RDoc under a ruby-core setup
18+
name: Generate ruby/ruby documentation with the current RDoc commit
1919
runs-on: ubuntu-20.04
2020
strategy:
2121
fail-fast: false
@@ -45,18 +45,16 @@ jobs:
4545
run: |
4646
autoconf
4747
./configure -C --disable-install-doc
48-
make -j2
4948
working-directory: ruby/ruby
5049
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.1.0
5150
with:
5251
path: ruby/rdoc
53-
- name: Sync tools
52+
- name: Build RDoc locally
5453
run: |
55-
ruby tool/sync_default_gems.rb rdoc
56-
working-directory: ruby/ruby
57-
- name: Test RDoc
58-
run: make -j2 -s test-all TESTS="rdoc --no-retry"
59-
working-directory: ruby/ruby
54+
bundle install
55+
bundle exec rake build
56+
mv pkg/rdoc-*.gem ../ruby/gems
57+
working-directory: ruby/rdoc
6058
- name: Generate Documentation with RDoc
6159
run: make html
6260
working-directory: ruby/ruby
@@ -70,3 +68,4 @@ jobs:
7068
working-directory: ruby/ruby
7169
env:
7270
RDOC_USE_PRISM_PARSER: true
71+

0 commit comments

Comments
 (0)