Skip to content

Commit f8b5759

Browse files
committed
NO-JIRA: refactor(.github/workflows): use JSON-based platform runner mapping and add README for runners, then add IBM runners
1 parent 87e8424 commit f8b5759

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Available runners
2+
3+
List for
4+
[public repositories](https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories)
5+
and for
6+
[private repositories](https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for--private-repositories).
7+
8+
- **Linux**: `ubuntu-latest`, `ubuntu-24.04`, `ubuntu-24.04-arm`
9+
10+
We have [IBM PowerPC and Z runners](https://community.ibm.com/community/user/blogs/elizabeth-k-joseph1/2025/05/19/expanding-open-source-access-hosted-github-actions) available through
11+
12+
* https://github.com/IBM/actionspz/issues/63
13+
14+
- **Linux**: `ubuntu-24.04-ppc64le`, `ubuntu-24.04-s390x`
15+
16+
We have considered investigating custom runners, either just plain containers/VMs, or something fronting an OpenShift cluster, in
17+
18+
* https://github.com/opendatahub-io/notebooks/issues/1389
19+
* https://github.com/opendatahub-io/notebooks/pull/2627

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ name: Build & Publish Notebook Servers (TEMPLATE)
3232
jobs:
3333
build:
3434
# https://docs.github.com/en/actions/how-tos/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
35-
runs-on: ${{ inputs.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
35+
runs-on: >-
36+
${{ fromJSON(
37+
'{"linux/amd64": "ubuntu-24.04", "linux/arm64": "ubuntu-24.04-arm", "linux/ppc64le": "ubuntu-24.04-ppc64le", "linux/s390x": "ubuntu-24.04-s390x"}'
38+
)[inputs.platform] || 'no-such-runner' }}
3639
env:
3740
# Some pieces of code (image pulls, for example) in podman consult TMPDIR or default to /var/tmp
3841
TMPDIR: /home/runner/.local/share/containers/tmpdir

0 commit comments

Comments
 (0)