Skip to content

Commit 323cfea

Browse files
committed
CI: ubuntu.yml: Add GitHub Actions ppc64le case
Note that the default configure option `./configure cppflags=-DRUBY_DEBUG` causes the following Ractor test and other tests failing. So, we don't set the option in ppc64le case. ``` $ make btest BTESTS=bootstraptest/test_ractor.rb ``` See https://bugs.ruby-lang.org/issues/21534 for details.
1 parent c2b55fa commit 323cfea

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/ubuntu.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ jobs:
3030
os:
3131
- ubuntu-24.04
3232
- ubuntu-24.04-arm
33-
# FIXME Comment out ppc64le due to failing tests on GitHub Actions
34-
# ppc64le
35-
# https://bugs.ruby-lang.org/issues/21534
36-
# - ubuntu-24.04-ppc64le
33+
- ubuntu-24.04-ppc64le
3734
- ubuntu-24.04-s390x
3835
# The ppc64le/s390x runners work only in the registered repositories.
3936
# They don't work in forked repositories.
@@ -121,9 +118,15 @@ jobs:
121118
env:
122119
arch: ${{ matrix.arch }}
123120
configure: ${{ matrix.configure }}
124-
run: >-
125-
$SETARCH ../src/configure -C --disable-install-doc ${configure:-cppflags=-DRUBY_DEBUG}
126-
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
121+
# Don't set cppflags=-DRUBY_DEBUG on ppc64le, due to some Ractor tests
122+
# failing in the case.
123+
# https://bugs.ruby-lang.org/issues/21534
124+
run: |
125+
if [ "$(uname -m)" != "ppc64le" ]; then
126+
configure="${configure:-cppflags=-DRUBY_DEBUG}"
127+
fi
128+
$SETARCH ../src/configure -C --disable-install-doc ${configure} \
129+
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
127130
128131
- run: $SETARCH make prepare-gems
129132
if: ${{ matrix.test_task == 'test-bundled-gems' }}

0 commit comments

Comments
 (0)