Skip to content

Commit 855872a

Browse files
authored
Merge branch 'master' into drop-ruby-2.4-ripper-compatibility
2 parents deefe9a + 0482993 commit 855872a

31 files changed

+940
-85
lines changed

.document

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ History.txt
22
LICENSE.txt
33
README.txt
44
RI.txt
5+
RI.md
56
lib
67
doc

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424
- name: Setup Ruby
25-
uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1.179.0
25+
uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0
2626
with:
2727
ruby-version: '3.2'
2828
bundler-cache: true

.github/workflows/ruby-core.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: ruby-core
2+
3+
on:
4+
pull_request:
5+
6+
push:
7+
branches:
8+
- master
9+
10+
concurrency:
11+
group: ci-${{ github.ref }}-${{ github.workflow }}
12+
13+
permissions: # added using https://github.com/step-security/secure-workflows
14+
contents: read
15+
16+
jobs:
17+
ruby_core:
18+
name: RDoc under a ruby-core setup
19+
runs-on: ubuntu-20.04
20+
strategy:
21+
fail-fast: false
22+
timeout-minutes: 30
23+
steps:
24+
- name: Set up latest ruby head
25+
uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0
26+
with:
27+
ruby-version: head
28+
bundler: none
29+
- name: Save latest buildable revision to environment
30+
run: echo "REF=$(ruby -v | cut -d')' -f1 | cut -d' ' -f5)" >> $GITHUB_ENV
31+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.1.0
32+
with:
33+
repository: ruby/ruby
34+
path: ruby/ruby
35+
fetch-depth: 10
36+
- name: Checkout the latest buildable revision
37+
run: git switch -c ${{ env.REF }}
38+
working-directory: ruby/ruby
39+
- name: Install libraries
40+
run: |
41+
set -x
42+
sudo apt-get update -q || :
43+
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
44+
- name: Build Ruby
45+
run: |
46+
autoconf
47+
./configure -C --disable-install-doc
48+
make -j2
49+
working-directory: ruby/ruby
50+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.1.0
51+
with:
52+
path: ruby/rdoc
53+
- name: Sync tools
54+
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

0 commit comments

Comments
 (0)