Skip to content

Commit 9ccfa53

Browse files
committed
CI: ubuntu.yml: Migrate Travis CI ppc64le/s390x cases to GitHub Actions.
Add the ppc64le/s390x cases using GitHub Actions ppc64le/s390x service. https://github.com/IBM/actionspz We can run the job only in the registered upstream repositories. https://github.com/IBM/actionspz/blob/main/docs/FAQ.md#what-about-forked-repos While Travis CI ran the Ubuntu 22.04 jammy ppc64le and s390x cases, and Ruby CI <https://rubyci.org/>'s "ppc64le (Ubuntu)" and "s390x (Ubuntu)" servers are also Ubuntu 22.04 cases, this commit adds the Ubuntu 24.04 cases using the following images. Because there is a merit to having both Ubuntu 24.04 and 22.04 cases to test Ruby in various environments. * ubuntu-24.04-ppc64le * ubuntu-24.04-s390x Note the following images are also available. * ubuntu-22.04-ppc64le * ubuntu-22.04-s390x
1 parent 69f64ff commit 9ccfa53

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/ubuntu.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ jobs:
2424
make:
2525
strategy:
2626
matrix:
27+
test_task: []
28+
configure: []
29+
os: []
30+
# The ppc64le/s390x runners work only in the registered repositories.
31+
# They don't work in forked repositories.
32+
# https://github.com/IBM/actionspz/blob/main/docs/FAQ.md#what-about-forked-repos
33+
upstream:
34+
- ${{ github.repository == 'ruby/ruby' }}
2735
include:
2836
# - test_task: check
2937
# configure: 'cppflags=-DVM_CHECK_MODE'
@@ -40,6 +48,17 @@ jobs:
4048
# os: ubuntu-24.04
4149
- test_task: check
4250
os: ubuntu-24.04-arm
51+
- test_task: check
52+
os: ubuntu-24.04-ppc64le
53+
upstream: true
54+
- test_task: check
55+
os: ubuntu-24.04-s390x
56+
upstream: true
57+
exclude:
58+
- os: ubuntu-24.04-ppc64le
59+
upstream: false
60+
- os: ubuntu-24.04-s390x
61+
upstream: false
4362
fail-fast: false
4463

4564
env:
@@ -72,7 +91,17 @@ jobs:
7291
with:
7392
ruby-version: '3.1'
7493
bundler: none
75-
if: ${{ !endsWith(matrix.os, 'arm') }}
94+
if: ${{ !endsWith(matrix.os, 'arm') && !endsWith(matrix.os, 'ppc64le') && !endsWith(matrix.os, 's390x') }}
95+
96+
# A temporary workaround: Set HOME env to pass the next step
97+
# ./.github/actions/setup/directories.
98+
# https://github.com/IBM/actionspz/issues/30
99+
- name: Set HOME env
100+
run: |
101+
echo "HOME: #{HOME}"
102+
echo "HOME=$(ls -d ~)" >> $GITHUB_ENV
103+
working-directory:
104+
if: ${{ endsWith(matrix.os, 'ppc64le') || endsWith(matrix.os, 's390x') }}
76105

77106
- uses: ./.github/actions/setup/directories
78107
with:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy