File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -169,12 +169,19 @@ jobs:
169
169
diff -u ../src/spec/ruby/library/etc/struct_passwd_spec.rb{.orig,} || :
170
170
if : ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}
171
171
172
+ # A temporary workaround: Limit CPU number for make check to avoid
173
+ # failing tests due to timeout.
174
+ # https://github.com/IBM/actionspz/issues/38
175
+ - name : Limit CPU number
176
+ run : echo "JOBS=-j$(nproc)" >> "$GITHUB_ENV"
177
+ if : ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}
178
+
172
179
- name : make ${{ matrix.test_task }}
173
180
run : |
174
181
test -n "${LAUNCHABLE_STDOUT}" && exec 1> >(tee "${LAUNCHABLE_STDOUT}")
175
182
test -n "${LAUNCHABLE_STDERR}" && exec 2> >(tee "${LAUNCHABLE_STDERR}")
176
183
177
- $SETARCH make -s ${{ matrix.test_task }} \
184
+ $SETARCH make -s $JOBS $ {{ matrix.test_task }} \
178
185
${TESTS:+TESTS="$TESTS"} \
179
186
${{ !contains(matrix.test_task, 'bundle') && 'RUBYOPT=-w' || '' }}
180
187
timeout-minutes : ${{ matrix.timeout || 40 }}
You can’t perform that action at this time.
0 commit comments