Skip to content

Commit fa4add6

Browse files
committed
Implement fully-qualified runner-vm-os input
1 parent 9fa47fc commit fa4add6

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

.github/workflows/ci-cd.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,30 +116,29 @@ jobs:
116116
- pre-setup # transitive, for accessing settings
117117
strategy:
118118
matrix:
119-
os:
120-
- ubuntu
121-
- windows
119+
runner-vm-os:
120+
- ubuntu-latest
121+
- windows-latest
122122
- windows-11-arm
123-
- macos
123+
- macos-latest
124124
tag:
125125
- ''
126126
- 'musllinux'
127127
exclude:
128-
- os: windows
128+
- runner-vm-os: windows-latest
129129
tag: 'musllinux'
130-
- os: windows-11-arm
130+
- runner-vm-os: windows-11-arm
131131
tag: 'musllinux'
132-
- os: macos
132+
- runner-vm-os: macos-latest
133133
tag: 'musllinux'
134-
- os: ubuntu
134+
- runner-vm-os: ubuntu-latest
135135
tag: >-
136136
${{
137137
(github.event_name != 'push' || github.ref_type != 'tag')
138138
&& 'musllinux' || 'none'
139139
}}
140140
uses: ./.github/workflows/reusable-cibuildwheel.yml
141141
with:
142-
os: ${{ matrix.os }}
143142
tag: ${{ matrix.tag }}
144143
wheel-tags-to-skip: >-
145144
${{
@@ -152,6 +151,7 @@ jobs:
152151
|| (matrix.tag == 'musllinux') && '*-manylinux_* pp*'
153152
|| '*-musllinux_* pp*'
154153
}}
154+
runner-vm-os: ${{ matrix.runner-vm-os }}
155155
source-tarball-name: >-
156156
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
157157
dists-artifact-name: ${{ needs.pre-setup.outputs.dists-artifact-name }}

.github/workflows/reusable-cibuildwheel.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ on:
99
description: Workflow artifact name containing dists
1010
required: true
1111
type: string
12-
os:
13-
description: VM OS to use, without version suffix
14-
default: ubuntu
15-
required: false
16-
type: string
1712
qemu:
1813
description: Emulated QEMU architecture
1914
default: ''
@@ -24,6 +19,11 @@ on:
2419
default: ''
2520
required: false
2621
type: string
22+
runner-vm-os:
23+
description: VM OS to use
24+
default: ubuntu-latest
25+
required: false
26+
type: string
2727
source-tarball-name:
2828
description: Sdist filename wildcard
2929
required: true
@@ -43,11 +43,8 @@ jobs:
4343

4444
build-wheel:
4545
name: >-
46-
Build ${{ inputs.tag }} wheels on ${{ inputs.os }} ${{ inputs.qemu }}
47-
runs-on: ${{
48-
inputs.os == 'windows-11-arm' && inputs.os ||
49-
format('{0}-latest', inputs.os)
50-
}}
46+
Build ${{ inputs.tag }} wheels on ${{ inputs.runner-vm-os }} ${{ inputs.qemu }}
47+
runs-on: ${{ inputs.runner-vm-os }}
5148
timeout-minutes: ${{ inputs.qemu && 120 || 15 }}
5249
steps:
5350
- name: Compute GHA artifact name ending
@@ -100,7 +97,7 @@ jobs:
10097
uses: actions/upload-artifact@v4
10198
with:
10299
name: ${{ inputs.dists-artifact-name }}-
103-
${{ inputs.os }}-
100+
${{ inputs.runner-vm-os }}-
104101
${{ inputs.qemu }}-
105102
${{ inputs.tag }}-
106103
${{ steps.gha-artifact-name.outputs.hash }}

0 commit comments

Comments
 (0)