@@ -15,14 +15,14 @@ permissions: # added using https://github.com/step-security/secure-workflows
1515
1616jobs :
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 
2222    timeout-minutes : 30 
2323    steps :
2424      - name : Set up latest ruby head 
25-         uses : ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f   #  v1.206 .0
25+         uses : ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9   #  v1.214 .0
2626        with :
2727          ruby-version : head 
2828          bundler : none 
@@ -45,15 +45,26 @@ 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 
54+           bundle install 
55+           bundle exec rake build:local_ruby 
56+          working-directory : ruby/rdoc 
57+       - name : Generate Documentation with RDoc 
58+         run : make html 
5659        working-directory : ruby/ruby 
57-       - name : Test RDoc 
58-         run : make -j2 -s test-all TESTS="rdoc --no-retry" 
60+       #  We need to clear the generated documentation to generate them again
61+       #  with the Prism parser.
62+       - name : Clear Generated Documentation 
63+         run : rm -r .ext/html 
5964        working-directory : ruby/ruby 
65+       - name : Generate Documentation with RDoc (Prism parser) 
66+         run : make html 
67+         working-directory : ruby/ruby 
68+         env :
69+           RDOC_USE_PRISM_PARSER : true 
70+ 
0 commit comments