@@ -26,13 +26,14 @@ jobs:
26
26
matrix :
27
27
test_task : [check]
28
28
configure : ['']
29
- arch : ['']
30
29
os :
31
30
# FIXME Comment out ppc64le due to failing tests on GitHub Actions
32
31
# ppc64le
33
32
# https://bugs.ruby-lang.org/issues/21534
34
33
# - ubuntu-24.04-ppc64le
35
34
- ubuntu-24.04-s390x
35
+ # Add a x86_64 case to make this CI pass on fork repositories.
36
+ - ubuntu-24.04
36
37
# The ppc64le/s390x runners work only in the registered repositories.
37
38
# They don't work in forked repositories.
38
39
# https://github.com/IBM/actionspz/blob/main/docs/FAQ.md#what-about-forked-repos
@@ -43,13 +44,15 @@ jobs:
43
44
upstream : false
44
45
- os : ubuntu-24.04-s390x
45
46
upstream : false
47
+ - os : ubuntu-24.04
48
+ upstream : true
46
49
fail-fast : false
47
50
48
51
env :
49
52
GITPULLOPTIONS : --no-tags origin ${{ github.ref }}
50
53
RUBY_DEBUG : ci
51
54
52
- runs-on : ${{ matrix.os || 'ubuntu-22.04' }}
55
+ runs-on : ${{ matrix.os }}
53
56
54
57
if : >-
55
58
${{!(false
@@ -66,14 +69,12 @@ jobs:
66
69
sparse-checkout : /.github
67
70
68
71
- uses : ./.github/actions/setup/ubuntu
69
- with :
70
- arch : ${{ matrix.arch }}
71
72
72
73
- uses : ruby/setup-ruby@a9bfc2ecf3dd40734a9418f89a7e9d484c32b990 # v1.248.0
73
74
with :
74
75
ruby-version : ' 3.1'
75
76
bundler : none
76
- if : ${{ !endsWith(matrix.os, 'arm') && !endsWith(matrix.os, ' ppc64le') && !endsWith(matrix.os, 's390x') }}
77
+ if : ${{ !endsWith(matrix.os, 'ppc64le') && !endsWith(matrix.os, 's390x') }}
77
78
78
79
# Avoid possible test failures with the zlib applying the following patch
79
80
# on s390x CPU architecture.
@@ -105,22 +106,17 @@ jobs:
105
106
106
107
- name : Run configure
107
108
env :
108
- arch : ${{ matrix.arch }}
109
109
configure : ${{ matrix.configure }}
110
110
run : >-
111
- $SETARCH ../src/configure -C --disable-install-doc ${configure:-cppflags=-DRUBY_DEBUG}
112
- ${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
113
-
114
- - run : $SETARCH make prepare-gems
115
- if : ${{ matrix.test_task == 'test-bundled-gems' }}
111
+ ../src/configure -C --disable-install-doc ${configure:-cppflags=-DRUBY_DEBUG}
116
112
117
- - run : $SETARCH make
113
+ - run : make
118
114
119
- - run : $SETARCH make hello
115
+ - run : make hello
120
116
121
117
- name : runirb
122
118
run : |
123
- echo IRB::VERSION | $SETARCH make runirb RUNOPT="-- -f"
119
+ echo IRB::VERSION | make runirb RUNOPT="-- -f"
124
120
125
121
- name : Set test options for skipped tests
126
122
run : |
@@ -133,7 +129,7 @@ jobs:
133
129
id : launchable
134
130
uses : ./.github/actions/launchable/setup
135
131
with :
136
- os : ${{ matrix.os || 'ubuntu-22.04' }}
132
+ os : ${{ matrix.os }}
137
133
test-opts : ${{ matrix.configure }}
138
134
launchable-token : ${{ secrets.LAUNCHABLE_TOKEN }}
139
135
builddir : build
@@ -157,7 +153,7 @@ jobs:
157
153
test -n "${LAUNCHABLE_STDOUT}" && exec 1> >(tee "${LAUNCHABLE_STDOUT}")
158
154
test -n "${LAUNCHABLE_STDERR}" && exec 2> >(tee "${LAUNCHABLE_STDERR}")
159
155
160
- $SETARCH make -s ${{ matrix.test_task }} \
156
+ make -s ${{ matrix.test_task }} \
161
157
${TESTS:+TESTS="$TESTS"} \
162
158
${{ !contains(matrix.test_task, 'bundle') && 'RUBYOPT=-w' || '' }}
163
159
timeout-minutes : ${{ matrix.timeout || 40 }}
@@ -170,7 +166,7 @@ jobs:
170
166
171
167
- name : make skipped tests
172
168
run : |
173
- $SETARCH make -s test-all TESTS="${TESTS//-n!\//-n/}"
169
+ make -s test-all TESTS="${TESTS//-n!\//-n/}"
174
170
env :
175
171
GNUMAKEFLAGS : ' '
176
172
RUBY_TESTOPTS : ' -v --tty=no'
@@ -180,11 +176,11 @@ jobs:
180
176
- name : test-pc
181
177
run : |
182
178
DESTDIR=${RUNNER_TEMP-${TMPDIR-/tmp}}/installed
183
- $SETARCH make test-pc "DESTDIR=$DESTDIR"
179
+ make test-pc "DESTDIR=$DESTDIR"
184
180
185
181
- uses : ./.github/actions/slack
186
182
with :
187
- label : ${{ matrix.test_task }} ${{ matrix.configure }}${{ matrix.arch }}
183
+ label : ${{ matrix.test_task }} ${{ matrix.configure }}
188
184
SLACK_WEBHOOK_URL : ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
189
185
if : ${{ failure() }}
190
186
0 commit comments