Skip to content

Commit 82c1a14

Browse files
committed
Fix autoconf auxiliary files issue in CI
The Ubuntu latest runner update caused autoconf to fail with "cannot find required auxiliary files: config.guess config.sub". This commit ensures these files are downloaded before running autoconf. This approach follows the solution in ruby/prism#3538
1 parent 282fec8 commit 82c1a14

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
@@ -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)