Skip to content

Commit 099df0b

Browse files
committed
CI: ubuntu.yml: Add GitHub Actions s390x case
Add the s390x case using GitHub Actions ppc64le/s390x service. https://github.com/IBM/actionspz We can run the ppc64le/s390x cases only in the registered upstream repositories. https://github.com/IBM/actionspz/blob/main/docs/FAQ.md#what-about-forked-repos The following matrix upstream logic is to skip the ppc64le/s390x in the downstream (fork) repositories. ``` + upstream: + - ${{ github.repository == 'ruby/ruby' }} ``` Use the "os" list to determine the excluded ppc64le/s390x cases by using the "exclude" syntax. Because the "exclude" syntax are executed before the "include" syntax. Add the ubuntu-24.04-ppc64le as a comment, because the GitHub Actions ppc64le case has the following test errors and failures. https://bugs.ruby-lang.org/issues/21534
1 parent e2aeb7d commit 099df0b

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/ubuntu.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ jobs:
2424
make:
2525
strategy:
2626
matrix:
27+
test_task: [check]
28+
configure: ['']
29+
arch: ['']
30+
os:
31+
- ubuntu-24.04
32+
- 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
37+
- ubuntu-24.04-s390x
38+
# The ppc64le/s390x runners work only in the registered repositories.
39+
# They don't work in forked repositories.
40+
# https://github.com/IBM/actionspz/blob/main/docs/FAQ.md#what-about-forked-repos
41+
upstream:
42+
- ${{ github.repository == 'ruby/ruby' }}
2743
include:
2844
- test_task: check
2945
configure: 'cppflags=-DVM_CHECK_MODE'
@@ -36,10 +52,11 @@ jobs:
3652
- test_task: test-bundler-parallel
3753
timeout: 50
3854
- test_task: test-bundled-gems
39-
- test_task: check
40-
os: ubuntu-24.04
41-
- test_task: check
42-
os: ubuntu-24.04-arm
55+
exclude:
56+
- os: ubuntu-24.04-ppc64le
57+
upstream: false
58+
- os: ubuntu-24.04-s390x
59+
upstream: false
4360
fail-fast: false
4461

4562
env:
@@ -72,7 +89,15 @@ jobs:
7289
with:
7390
ruby-version: '3.1'
7491
bundler: none
75-
if: ${{ !endsWith(matrix.os, 'arm') }}
92+
if: ${{ !endsWith(matrix.os, 'arm') && !endsWith(matrix.os, 'ppc64le') && !endsWith(matrix.os, 's390x') }}
93+
94+
# Avoid possible test failures with the zlib applying the following patch
95+
# on s390x CPU architecture.
96+
# https://github.com/madler/zlib/pull/410
97+
- name: Disable DFLTCC
98+
run: echo "DFLTCC=0" >> $GITHUB_ENV
99+
working-directory:
100+
if: ${{ endsWith(matrix.os, 's390x') }}
76101

77102
- uses: ./.github/actions/setup/directories
78103
with:

0 commit comments

Comments
 (0)