Skip to content

Commit 943b5f6

Browse files
committed
CI: Launchable: Fix errors at actions/setup-python on ppc64le/s390x
The following errors happened at the actions/setup-python step. https://github.com/ruby/ruby/actions/runs/18229870239 > The version '3.x' with architecture 's390x' was not found for Ubuntu 24.04. > The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json > The version '3.x' with architecture 'ppc64' was not found for Ubuntu 24.04. > The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json After skipping the actions/setup-python step, the following errors also happened at the actions/setup-java step. https://github.com/ruby/ruby/actions/runs/18355975425?pr=14721 > make-ibm (check, ubuntu-24.04-ppc64le) > Could not find satisfied version for SemVer '17'. > make-ibm (check, ubuntu-24.04-s390x) > The process '/usr/bin/bash' failed with exit code 1 > make-ibm (check, ubuntu-24.04-s390x) > Process completed with exit code 127. To fix the errors, I started using the Java distribution semeru (IBM Semeru Runtime Open Edition) on the ppc64le/s390x cases. You can see the following page for the details of the Java distribution semeru. https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions https://github.com/actions/setup-java/blob/ead9eaa3cfe0b0fc2fa749519ae09c3d4f4080b0/src/distributions/semeru/installer.ts#L20-L27
1 parent 5ced99d commit 943b5f6

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

.github/actions/launchable/setup/action.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,38 @@ runs:
9292
uses: actions/setup-python@871daa956ca9ea99f3c3e30acb424b7960676734 # v5.0.0
9393
with:
9494
python-version: "3.x"
95-
if: steps.enable-launchable.outputs.enable-launchable
95+
if: >-
96+
${{ steps.enable-launchable.outputs.enable-launchable
97+
&& !endsWith(inputs.os, 'ppc64le') && !endsWith(inputs.os, 's390x') }}
9698
9799
- name: Set up Java
98100
uses: actions/setup-java@7a445ee88d4e23b52c33fdc7601e40278616c7f8 # v4.0.0
99101
with:
100102
distribution: 'temurin'
101103
java-version: '17'
102-
if: steps.enable-launchable.outputs.enable-launchable
104+
if: >-
105+
${{ steps.enable-launchable.outputs.enable-launchable
106+
&& !endsWith(inputs.os, 'ppc64le') && !endsWith(inputs.os, 's390x') }}
107+
108+
- name: Set up Java ppc64le
109+
uses: actions/setup-java@7a445ee88d4e23b52c33fdc7601e40278616c7f8 # v4.0.0
110+
with:
111+
distribution: 'semeru'
112+
architecture: 'ppc64le'
113+
java-version: '17'
114+
if: >-
115+
${{ steps.enable-launchable.outputs.enable-launchable
116+
&& endsWith(inputs.os, 'ppc64le') }}
117+
118+
- name: Set up Java s390x
119+
uses: actions/setup-java@7a445ee88d4e23b52c33fdc7601e40278616c7f8 # v4.0.0
120+
with:
121+
distribution: 'semeru'
122+
architecture: 's390x'
123+
java-version: '17'
124+
if: >-
125+
${{ steps.enable-launchable.outputs.enable-launchable
126+
&& endsWith(inputs.os, 's390x') }}
103127
104128
- name: Set global vars
105129
id: global
@@ -142,7 +166,13 @@ runs:
142166
# Since updated PATH variable will be available in only subsequent actions, we need to add the path beforehand.
143167
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
144168
run: echo "$(python -msite --user-base)/bin" >> $GITHUB_PATH
145-
if: steps.enable-launchable.outputs.enable-launchable && startsWith(inputs.os, 'macos')
169+
if: >-
170+
${{
171+
steps.enable-launchable.outputs.enable-launchable
172+
&& (startsWith(inputs.os, 'macos')
173+
|| endsWith(inputs.os, 'ppc64le')
174+
|| endsWith(inputs.os, 's390x'))
175+
}}
146176
147177
- name: Set up Launchable
148178
id: setup-launchable

0 commit comments

Comments
 (0)