Skip to content

Commit aa9f509

Browse files
authored
Runs ruby-core workflow on ubuntu-latest (#1345)
Ubuntu 20.04 is now retired on GH Actions and jobs using it are stopped automatically. [Reference](actions/runner-images#11101)
1 parent d3195e1 commit aa9f509

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ruby-core.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ruby-core
1+
name: Document generation test with ruby/ruby
22

33
on:
44
pull_request:
@@ -16,7 +16,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
1616
jobs:
1717
ruby_core:
1818
name: Generate ruby/ruby documentation with the current RDoc commit
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-latest
2020
strategy:
2121
fail-fast: false
2222
timeout-minutes: 30
@@ -43,6 +43,11 @@ jobs:
4343
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby
4444
- name: Build Ruby
4545
run: |
46+
# Download the required auxiliary files for autoconf
47+
# This is necessary because autoconf 2.71+ (included in Ubuntu latest)
48+
# fails with "cannot find required auxiliary files" error
49+
# These files (config.guess and config.sub) are needed for system detection
50+
ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
4651
autoconf
4752
./configure -C --disable-install-doc
4853
working-directory: ruby/ruby

0 commit comments

Comments
 (0)