Skip to content

Commit 2310f2f

Browse files
authored
Merge branch 'master' into math-log1p-expm1
2 parents caac21d + feb8331 commit 2310f2f

File tree

323 files changed

+8017
-4250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

323 files changed

+8017
-4250
lines changed

.gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ define rp
5151
printf "%sT_OBJECT%s: ", $color_type, $color_end
5252
print ((struct RObject *)($arg0))->basic
5353
if ($flags & ROBJECT_EMBED)
54-
print/x *((VALUE*)((struct RObject*)($arg0))->as.ary) @ (rb_shape_get_shape($arg0)->capacity)
54+
print/x *((VALUE*)((struct RObject*)($arg0))->as.ary) @ (RSHAPE_CAPACITY(rb_obj_shape_id($arg0)))
5555
else
5656
print (((struct RObject *)($arg0))->as.heap)
5757
if (((struct RObject*)($arg0))->as.heap.numiv) > 0

.github/actions/setup/directories/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ runs:
9393
path: ${{ inputs.srcdir }}
9494
fetch-depth: ${{ inputs.fetch-depth }}
9595

96-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
96+
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
9797
with:
9898
path: ${{ inputs.srcdir }}/.downloaded-cache
9999
key: ${{ runner.os }}-${{ runner.arch }}-downloaded-cache

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ updates:
1616
directory: '/yjit'
1717
schedule:
1818
interval: 'daily'
19+
- package-ecosystem: 'vcpkg'
20+
directory: '/'
21+
schedule:
22+
interval: 'daily'

.github/workflows/annocheck.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ jobs:
3939
if: >-
4040
${{!(false
4141
|| contains(github.event.head_commit.message, '[DOC]')
42-
|| contains(github.event.head_commit.message, 'Document')
4342
|| contains(github.event.pull_request.title, '[DOC]')
44-
|| contains(github.event.pull_request.title, 'Document')
4543
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
4644
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
4745
)}}

.github/workflows/baseruby.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
if: >-
3636
${{!(false
3737
|| contains(github.event.head_commit.message, '[DOC]')
38-
|| contains(github.event.head_commit.message, 'Document')
3938
|| contains(github.event.pull_request.title, '[DOC]')
40-
|| contains(github.event.pull_request.title, 'Document')
4139
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
4240
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
4341
)}}

.github/workflows/check_dependencies.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ jobs:
4848
- name: Run configure
4949
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
5050

51-
- run: make all golf
52-
53-
- run: ./goruby -veh
54-
55-
- run: ruby tool/update-deps --fix
51+
- run: make fix-depends
5652

5753
- run: git diff --no-ext-diff --ignore-submodules --exit-code
5854

.github/workflows/check_misc.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,50 @@ jobs:
6161
exit $fail
6262
working-directory: include
6363

64-
- name: Generate docs
65-
id: docs
64+
- name: Check if to generate documents
65+
id: rdoc
6666
run: |
67-
ruby -W0 --disable-gems tool/rdoc-srcdir -q --op html .
68-
echo htmlout=ruby-html-${GITHUB_SHA:0:10} >> $GITHUB_OUTPUT
67+
ref=$(sed 's/#.*//;/^rdoc /!d' gems/bundled_gems | awk '{print $4}')
68+
echo ref=$ref >> $GITHUB_OUTPUT
6969
# Generate only when document commit/PR
7070
if: >-
7171
${{false
7272
|| contains(github.event.head_commit.message, '[ruby/rdoc]')
7373
|| contains(github.event.head_commit.message, '[DOC]')
74-
|| contains(github.event.head_commit.message, 'Document')
7574
|| contains(github.event.pull_request.title, '[DOC]')
76-
|| contains(github.event.pull_request.title, 'Document')
7775
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
7876
}}
7977
78+
- name: Checkout rdoc
79+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
80+
with:
81+
repository: ruby/rdoc
82+
ref: ${{ steps.rdoc.outputs.ref }}
83+
path: .bundle/gems/rdoc-0
84+
if: ${{ steps.rdoc.outputs.ref != '' }}
85+
86+
- name: Generate rdoc
87+
run: |
88+
set -x
89+
gempath=$(ruby -e 'print Gem.user_dir, "/bin"')
90+
PATH=$gempath:$PATH
91+
gem install --user bundler
92+
bundle config --local path vendor/bundle
93+
bundle install --jobs 4
94+
bundle exec rake generate
95+
working-directory: .bundle/gems/rdoc-0
96+
if: ${{ steps.rdoc.outputs.ref != '' }}
97+
98+
- name: Generate docs
99+
id: docs
100+
run: |
101+
$RDOC -C -x ^ext -x ^lib .
102+
$RDOC --op html .
103+
echo htmlout=ruby-html-${GITHUB_SHA:0:10} >> $GITHUB_OUTPUT
104+
env:
105+
RDOC: ruby -W0 --disable-gems tool/rdoc-srcdir -q
106+
if: ${{ steps.rdoc.outcome == 'success' }}
107+
80108
- name: Upload docs
81109
uses: actions/upload-artifact@v4
82110
with:

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ jobs:
4141
if: >-
4242
${{!(false
4343
|| contains(github.event.head_commit.message, '[DOC]')
44-
|| contains(github.event.head_commit.message, 'Document')
4544
|| contains(github.event.pull_request.title, '[DOC]')
46-
|| contains(github.event.pull_request.title, 'Document')
4745
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
4846
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
4947
)}}

.github/workflows/compilers.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
if: >-
3636
${{!(false
3737
|| contains(github.event.head_commit.message, '[DOC]')
38-
|| contains(github.event.head_commit.message, 'Document')
3938
|| contains(github.event.pull_request.title, '[DOC]')
40-
|| contains(github.event.pull_request.title, 'Document')
4139
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
4240
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
4341
)}}
@@ -107,6 +105,7 @@ jobs:
107105
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
108106
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github }
109107
- { uses: './.github/actions/setup/directories', with: { srcdir: 'src', builddir: 'build', makeup: true, fetch-depth: 10 } }
108+
- { uses: './.github/actions/compilers', name: 'clang 22', with: { tag: 'clang-22' } }
110109
- { uses: './.github/actions/compilers', name: 'clang 21', with: { tag: 'clang-21' } }
111110
- { uses: './.github/actions/compilers', name: 'clang 20', with: { tag: 'clang-20' } }
112111
- { uses: './.github/actions/compilers', name: 'clang 19', with: { tag: 'clang-19' } }

.github/workflows/cygwin.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
if: >-
3333
${{!(false
3434
|| contains(github.event.head_commit.message, '[DOC]')
35-
|| contains(github.event.head_commit.message, 'Document')
3635
|| contains(github.event.pull_request.title, '[DOC]')
37-
|| contains(github.event.pull_request.title, 'Document')
3836
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
3937
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
4038
)}}

0 commit comments

Comments
 (0)