Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
099df0b
CI: ubuntu.yml: Add GitHub Actions s390x case
junaruga Jul 22, 2025
05b654b
CI: ubuntu.yml: Set HOME env on ppc64le and s390x
junaruga Jul 22, 2025
9fa87a6
CI: ubuntu.yml: Skip user ground id test on ppc64le and s390x
junaruga Aug 12, 2025
0019e7c
Use rb_gc_mark_and_move for autoload_const
peterzhu2118 Aug 11, 2025
814eaf3
Use rb_gc_mark_and_move for autoload_data
peterzhu2118 Aug 11, 2025
37e991b
[DOC] Use the specified revision RDoc
nobu Aug 12, 2025
8f6f9e8
[DOC] Try the latest RDoc
nobu Aug 12, 2025
58dbfe5
[DOC] Fix a typo
nobu Aug 12, 2025
e07510d
[DOC] Markup constants as code
nobu Aug 12, 2025
74b45dc
[DOC] Use backticks instead of `+` in markdown mode
nobu Aug 12, 2025
cefd4a2
[DOC] Use backticks instead of `<tt>` except for nested markups
nobu Aug 12, 2025
c5c894c
[DOC] Markup example code as ruby
nobu Aug 12, 2025
e26ab5d
ZJIT: Avoid splitting add_into/sub_into for x86_64 (#14177)
k0kubun Aug 12, 2025
998be6b
ZJIT: Add flag to disable the HIR optimizer (#14181)
tekknolagi Aug 12, 2025
3e1e2bd
Make Enumerator::Chain write-barrier protected
peterzhu2118 Aug 12, 2025
a9230e7
Make Enumerator::Product write-barrier protected
peterzhu2118 Aug 12, 2025
2f95eb4
Rename rbimpl_atomic.*_set to _store
jhawthorn Jul 19, 2025
1d9f760
Update rbimpl_atomic_* to all take a memory order
jhawthorn Jul 28, 2025
77d29ef
Convert ATOMIC_LOAD_RELAXED to use new rbimpl_*
jhawthorn Jul 29, 2025
cb360b0
Implement rbimpl_atomic_value_load
jhawthorn Jul 29, 2025
4cf05ea
Replace stdatomic ops with explicit mem order
jhawthorn Jul 29, 2025
507b1e4
[ruby/openssl] pkey: skip tests using invalid keys in the FIPS mode
rhenium Aug 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions .github/workflows/check_misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,11 @@ jobs:
exit $fail
working-directory: include

- name: Generate docs
id: docs
- name: Check if to generate documents
id: rdoc
run: |
$RDOC -C -x ^ext -x ^lib .
$RDOC --op html .
echo htmlout=ruby-html-${GITHUB_SHA:0:10} >> $GITHUB_OUTPUT
env:
RDOC: ruby -W0 --disable-gems tool/rdoc-srcdir -q
ref=$(sed 's/#.*//;/^rdoc /!d' gems/bundled_gems | awk '{print $4}')
echo ref=$ref >> $GITHUB_OUTPUT
# Generate only when document commit/PR
if: >-
${{false
Expand All @@ -80,6 +77,36 @@ jobs:
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
}}

- name: Checkout rdoc
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ruby/rdoc
ref: ${{ steps.rdoc.outputs.ref }}
path: .bundle/gems/rdoc-0
if: ${{ steps.rdoc.outputs.ref != '' }}

- name: Generate rdoc
run: |
set -x
gempath=$(ruby -e 'print Gem.user_dir, "/bin"')
PATH=$gempath:$PATH
gem install --user bundler
bundle config --local path vendor/bundle
bundle install --jobs 4
bundle exec rake generate
working-directory: .bundle/gems/rdoc-0
if: ${{ steps.rdoc.outputs.ref != '' }}

- name: Generate docs
id: docs
run: |
$RDOC -C -x ^ext -x ^lib .
$RDOC --op html .
echo htmlout=ruby-html-${GITHUB_SHA:0:10} >> $GITHUB_OUTPUT
env:
RDOC: ruby -W0 --disable-gems tool/rdoc-srcdir -q
if: ${{ steps.rdoc.outcome == 'success' }}

- name: Upload docs
uses: actions/upload-artifact@v4
with:
Expand Down
56 changes: 51 additions & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ jobs:
make:
strategy:
matrix:
test_task: [check]
configure: ['']
arch: ['']
os:
- ubuntu-24.04
- ubuntu-24.04-arm
# FIXME Comment out ppc64le due to failing tests on GitHub Actions
# ppc64le
# https://bugs.ruby-lang.org/issues/21534
# - ubuntu-24.04-ppc64le
- ubuntu-24.04-s390x
# The ppc64le/s390x runners work only in the registered repositories.
# They don't work in forked repositories.
# https://github.com/IBM/actionspz/blob/main/docs/FAQ.md#what-about-forked-repos
upstream:
- ${{ github.repository == 'ruby/ruby' }}
include:
- test_task: check
configure: 'cppflags=-DVM_CHECK_MODE'
Expand All @@ -36,10 +52,11 @@ jobs:
- test_task: test-bundler-parallel
timeout: 50
- test_task: test-bundled-gems
- test_task: check
os: ubuntu-24.04
- test_task: check
os: ubuntu-24.04-arm
exclude:
- os: ubuntu-24.04-ppc64le
upstream: false
- os: ubuntu-24.04-s390x
upstream: false
fail-fast: false

env:
Expand Down Expand Up @@ -72,7 +89,25 @@ jobs:
with:
ruby-version: '3.1'
bundler: none
if: ${{ !endsWith(matrix.os, 'arm') }}
if: ${{ !endsWith(matrix.os, 'arm') && !endsWith(matrix.os, 'ppc64le') && !endsWith(matrix.os, 's390x') }}

# Avoid possible test failures with the zlib applying the following patch
# on s390x CPU architecture.
# https://github.com/madler/zlib/pull/410
- name: Disable DFLTCC
run: echo "DFLTCC=0" >> $GITHUB_ENV
working-directory:
if: ${{ endsWith(matrix.os, 's390x') }}

# A temporary workaround: Set HOME env to pass the step
# ./.github/actions/setup/directories.
# https://github.com/IBM/actionspz/issues/30
- name: Set HOME env
run: |
echo "HOME: #{HOME}"
echo "HOME=$(ls -d ~)" >> $GITHUB_ENV
working-directory:
if: ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}

- uses: ./.github/actions/setup/directories
with:
Expand Down Expand Up @@ -122,6 +157,17 @@ jobs:
continue-on-error: true
timeout-minutes: 3

# A temporary workaround: Skip user ground id test
# There is a mismatch between the group IDs of "id -g" and C function
# getpwuid(uid_t uid) pw_gid.
# https://github.com/IBM/actionspz/issues/31
- name: Skip user group id test
run: |
sed -i.orig '/^ it "returns user group id" do/a\ skip' \
../src/spec/ruby/library/etc/struct_passwd_spec.rb
diff -u ../src/spec/ruby/library/etc/struct_passwd_spec.rb{.orig,} || :
if: ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}

- name: make ${{ matrix.test_task }}
run: |
test -n "${LAUNCHABLE_STDOUT}" && exec 1> >(tee "${LAUNCHABLE_STDOUT}")
Expand Down
Loading