From 282fec8c664cd81129117ad99b9e39e8ffb08244 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 21 Apr 2025 23:42:14 +0900 Subject: [PATCH 1/2] Runs ruby-core workflow on ubuntu-latest --- .github/workflows/ruby-core.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby-core.yml b/.github/workflows/ruby-core.yml index 49592ee9d5..1959173d7f 100644 --- a/.github/workflows/ruby-core.yml +++ b/.github/workflows/ruby-core.yml @@ -1,4 +1,4 @@ -name: ruby-core +name: Document generation test with ruby/ruby on: pull_request: @@ -16,7 +16,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: ruby_core: name: Generate ruby/ruby documentation with the current RDoc commit - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false timeout-minutes: 30 From 82c1a14f6361d4bcfcf9b990612efa7c2ebcc481 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 21 Apr 2025 23:55:50 +0900 Subject: [PATCH 2/2] 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 --- .github/workflows/ruby-core.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ruby-core.yml b/.github/workflows/ruby-core.yml index 1959173d7f..979aa239a1 100644 --- a/.github/workflows/ruby-core.yml +++ b/.github/workflows/ruby-core.yml @@ -43,6 +43,11 @@ jobs: 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 - name: Build Ruby run: | + # Download the required auxiliary files for autoconf + # This is necessary because autoconf 2.71+ (included in Ubuntu latest) + # fails with "cannot find required auxiliary files" error + # These files (config.guess and config.sub) are needed for system detection + ruby tool/downloader.rb -d tool -e gnu config.guess config.sub autoconf ./configure -C --disable-install-doc working-directory: ruby/ruby