Skip to content

Commit 2daa886

Browse files
committed
fix(ci): publish wheels compatible with more Python versions
The build randomly picked Python interpreter to use causing build with Python 3.8 and not producing wheels compatible with modern Python versions.
1 parent 8ef32ac commit 2daa886

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,12 @@ jobs:
8080
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8181
with:
8282
persist-credentials: false
83-
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
84-
with:
85-
python-version: 3.x
8683
- name: Build wheels
8784
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
8885
with:
8986
target: ${{ matrix.platform.target }}
90-
args: --release --out dist
87+
# Build the stable-ABI wheel against CPython 3.10 so it is tagged cp310-abi3 everywhere.
88+
args: --release --out dist -i python3.10
9189
sccache: false
9290
manylinux: auto
9391
- name: Build free-threaded wheels
@@ -128,14 +126,11 @@ jobs:
128126
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
129127
with:
130128
persist-credentials: false
131-
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
132-
with:
133-
python-version: 3.x
134129
- name: Build wheels
135130
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
136131
with:
137132
target: ${{ matrix.platform.target }}
138-
args: --release --out dist
133+
args: --release --out dist -i python3.10
139134
sccache: false
140135
manylinux: musllinux_1_2
141136
- name: Build free-threaded wheels
@@ -176,13 +171,13 @@ jobs:
176171
persist-credentials: false
177172
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
178173
with:
179-
python-version: 3.x
174+
python-version: '3.10'
180175
architecture: ${{ matrix.platform.target }}
181176
- name: Build wheels
182177
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
183178
with:
184179
target: ${{ matrix.platform.target }}
185-
args: --release --out dist
180+
args: --release --out dist -i python
186181
sccache: false
187182
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
188183
with:
@@ -222,12 +217,12 @@ jobs:
222217
persist-credentials: false
223218
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
224219
with:
225-
python-version: 3.x
220+
python-version: '3.10'
226221
- name: Build wheels
227222
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
228223
with:
229224
target: ${{ matrix.platform.target }}
230-
args: --release --out dist
225+
args: --release --out dist -i python
231226
sccache: false
232227
- name: Build free-threaded wheels
233228
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0

0 commit comments

Comments
 (0)