Skip to content

Commit 87cdf41

Browse files
committed
Add workflow option to select manylinux images
1 parent 428e105 commit 87cdf41

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/cd-wheel.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ on: # yamllint disable-line rule:truthy
3737
- macOS
3838
- macOS-arm64
3939
- macOS-x86_64
40+
manylinux:
41+
description: 'manylinux'
42+
required: false
43+
type: choice
44+
default: manylinux_2_28
45+
options:
46+
- manylinux_2_28
47+
- manylinux2014
4048
workflow_call:
4149
inputs:
4250
mpiname:
@@ -59,6 +67,11 @@ on: # yamllint disable-line rule:truthy
5967
required: false
6068
type: string
6169
default: ''
70+
manylinux:
71+
description: 'manylinux'
72+
required: false
73+
type: string
74+
default: 'manylinux_2_28'
6275

6376
env:
6477
MPINAME: '${{ inputs.mpiname }}'
@@ -179,8 +192,8 @@ jobs:
179192
SOURCE="$PWD/package/source"
180193
WORKDIR="$PWD/package/workdir"
181194
DESTDIR="$PWD/package/install"
182-
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
183-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
195+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ inputs.manylinux }}
196+
CIBW_MANYLINUX_X86_64_IMAGE: ${{ inputs.manylinux }}
184197

185198
- id: sha256sum
186199
run: |

.github/workflows/cd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ on: # yamllint disable-line rule:truthy
3737
- macOS
3838
- macOS-arm64
3939
- macOS-x86_64
40+
manylinux:
41+
description: 'manylinux'
42+
required: false
43+
type: choice
44+
default: manylinux_2_28
45+
options:
46+
- manylinux_2_28
47+
- manylinux2014
4048
publish-pypi:
4149
description: 'Publish to PyPI'
4250
required: false
@@ -62,6 +70,7 @@ jobs:
6270
version: ${{ inputs.version }}
6371
release: ${{ inputs.release }}
6472
os-arch: ${{ inputs.os-arch }}
73+
manylinux: ${{ inputs.manylinux }}
6574

6675
publish-pypi:
6776
if: ${{ inputs.publish-pypi }}

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ on: # yamllint disable-line rule:truthy
2929
- macOS
3030
- macOS-arm64
3131
- macOS-x86_64
32+
manylinux:
33+
description: 'manylinux'
34+
required: false
35+
type: choice
36+
default: manylinux_2_28
37+
options:
38+
- manylinux_2_28
39+
- manylinux2014
3240
pull_request:
3341
branches:
3442
- master
@@ -47,6 +55,7 @@ jobs:
4755
uses: ./.github/workflows/cd-wheel.yml
4856
with:
4957
os-arch: ${{ inputs.os-arch }}
58+
manylinux: ${{ inputs.manylinux }}
5059
mpiname: mpich
5160
version:
5261

@@ -55,6 +64,7 @@ jobs:
5564
uses: ./.github/workflows/cd-wheel.yml
5665
with:
5766
os-arch: ${{ inputs.os-arch }}
67+
manylinux: ${{ inputs.manylinux }}
5868
mpiname: mpich
5969
version: 4.2.3
6070

@@ -63,6 +73,7 @@ jobs:
6373
uses: ./.github/workflows/cd-wheel.yml
6474
with:
6575
os-arch: ${{ inputs.os-arch }}
76+
manylinux: ${{ inputs.manylinux }}
6677
mpiname: mpich
6778
version: 4.1.3
6879

@@ -71,6 +82,7 @@ jobs:
7182
uses: ./.github/workflows/cd-wheel.yml
7283
with:
7384
os-arch: ${{ inputs.os-arch }}
85+
manylinux: ${{ inputs.manylinux }}
7486
mpiname: mpich
7587
version: 4.0.3
7688

@@ -79,6 +91,7 @@ jobs:
7991
uses: ./.github/workflows/cd-wheel.yml
8092
with:
8193
os-arch: ${{ inputs.os-arch }}
94+
manylinux: ${{ inputs.manylinux }}
8295
mpiname: mpich
8396
version: 3.4.3
8497

@@ -87,6 +100,7 @@ jobs:
87100
uses: ./.github/workflows/cd-wheel.yml
88101
with:
89102
os-arch: ${{ inputs.os-arch }}
103+
manylinux: ${{ inputs.manylinux }}
90104
mpiname: openmpi
91105
version:
92106

@@ -95,6 +109,7 @@ jobs:
95109
uses: ./.github/workflows/cd-wheel.yml
96110
with:
97111
os-arch: ${{ inputs.os-arch }}
112+
manylinux: ${{ inputs.manylinux }}
98113
mpiname: openmpi
99114
version: 4.1.7
100115

0 commit comments

Comments
 (0)