Skip to content

Commit 538cb9a

Browse files
committed
Add/fix inputs to CI/CD workflows
1 parent 2b4d8d5 commit 538cb9a

File tree

3 files changed

+50
-11
lines changed

3 files changed

+50
-11
lines changed

.github/workflows/cd-wheel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ on: # yamllint disable-line rule:truthy
2525
type: string
2626
default: ''
2727
os-arch:
28-
description: "Target OS-Architecture"
28+
description: 'Target OS-Architecture'
2929
required: false
3030
type: choice
3131
default: Linux-x86_64
3232
options:
33-
- all
33+
- '*'
3434
- Linux
3535
- Linux-aarch64
3636
- Linux-x86_64

.github/workflows/cd.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,36 @@ on: # yamllint disable-line rule:truthy
1717
version:
1818
description: 'MPI Version'
1919
required: false
20-
default: ''
2120
type: string
21+
default: ''
2222
release:
2323
description: 'Release number'
2424
required: false
25-
default: ''
2625
type: string
26+
default: ''
2727
os-arch:
28-
description: "Target OS-Architecture"
28+
description: 'Target OS-Architecture'
2929
required: false
3030
type: choice
31-
default: all
31+
default: '*'
3232
options:
33-
- all
33+
- '*'
3434
- Linux
3535
- Linux-aarch64
3636
- Linux-x86_64
3737
- macOS
3838
- macOS-arm64
3939
- macOS-x86_64
4040
publish-pypi:
41-
description: "Publish to PyPI"
41+
description: 'Publish to PyPI'
4242
required: false
43-
default: false
4443
type: boolean
44+
default: false
4545
publish-anaconda:
46-
description: "Publish to Anaconda"
46+
description: 'Publish to Anaconda'
4747
required: false
48-
default: false
4948
type: boolean
49+
default: false
5050

5151
jobs:
5252

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,55 +5,94 @@ permissions:
55

66
on: # yamllint disable-line rule:truthy
77
workflow_dispatch:
8+
inputs:
9+
mpich:
10+
description: 'mpich'
11+
required: false
12+
type: boolean
13+
default: true
14+
openmpi:
15+
description: 'openmpi'
16+
required: false
17+
type: boolean
18+
default: true
19+
os-arch:
20+
description: 'os-arch'
21+
required: false
22+
type: choice
23+
default: '*'
24+
options:
25+
- '*'
26+
- Linux
27+
- Linux-aarch64
28+
- Linux-x86_64
29+
- macOS
30+
- macOS-arm64
31+
- macOS-x86_64
832
pull_request:
933
branches:
1034
- master
1135

1236
jobs:
1337

1438
mpich-43:
39+
if: ${{ !inputs || inputs.mpich }}
1540
uses: ./.github/workflows/cd-wheel.yml
1641
with:
42+
os-arch: ${{ inputs.os-arch }}
1743
mpiname: mpich
1844
version:
1945

2046
mpich-42:
47+
if: ${{ !inputs || inputs.mpich }}
2148
uses: ./.github/workflows/cd-wheel.yml
2249
with:
50+
os-arch: ${{ inputs.os-arch }}
2351
mpiname: mpich
2452
version: 4.2.3
2553

2654
mpich-41:
55+
if: ${{ !inputs || inputs.mpich }}
2756
uses: ./.github/workflows/cd-wheel.yml
2857
with:
58+
os-arch: ${{ inputs.os-arch }}
2959
mpiname: mpich
3060
version: 4.1.3
3161

3262
mpich-40:
63+
if: ${{ !inputs || inputs.mpich }}
3364
uses: ./.github/workflows/cd-wheel.yml
3465
with:
66+
os-arch: ${{ inputs.os-arch }}
3567
mpiname: mpich
3668
version: 4.0.3
3769

3870
mpich-34:
71+
if: ${{ !inputs || inputs.mpich }}
3972
uses: ./.github/workflows/cd-wheel.yml
4073
with:
74+
os-arch: ${{ inputs.os-arch }}
4175
mpiname: mpich
4276
version: 3.4.3
4377

4478
openmpi-50:
79+
if: ${{ !inputs || inputs.openmpi }}
4580
uses: ./.github/workflows/cd-wheel.yml
4681
with:
82+
os-arch: ${{ inputs.os-arch }}
4783
mpiname: openmpi
4884
version:
4985

5086
openmpi-41:
87+
if: ${{ !inputs || inputs.openmpi }}
5188
uses: ./.github/workflows/cd-wheel.yml
5289
with:
90+
os-arch: ${{ inputs.os-arch }}
5391
mpiname: openmpi
5492
version: 4.1.7
5593

5694
wheelhouse:
95+
if: ${{ always() && !inputs || inputs.mpich || inputs.openmpi }}
5796
runs-on: ubuntu-latest
5897
needs:
5998
- mpich-43

0 commit comments

Comments
 (0)