3434 fail-fast : false
3535 matrix :
3636 os : [ubuntu-latest]
37- cibw_python : ["cp312", "cp313", " cp313t", "cp314 ", "cp314t"]
37+ cibw_python : ["cp312", "cp313t", "cp314t"]
3838 cibw_arch : ["x86_64"]
3939 steps :
4040 - uses : actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.2
4545 with :
4646 python-version : " 3.12"
4747
48+ - name : Enable Stable ABI for with-GIL interpreters
49+ if : ${{ !endsWith(matrix.cibw_python, 't') }}
50+ run : |
51+ echo CIBW_CONFIG_SETTINGS="setup-args=-Dpython.allow_limited_api=true" >> "$GITHUB_ENV"
52+
4853 - name : Build the wheel
4954 uses : pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
5055 with :
5358 CIBW_BUILD : ${{ matrix.cibw_python }}-*
5459 CIBW_ARCHS_LINUX : ${{ matrix.cibw_arch }}
5560 CIBW_ENABLE : cpython-freethreading
61+
5662 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5763 with :
5864 name : wheels_linux_${{ matrix.cibw_arch }}_${{ matrix.cibw_python }}
6672 fail-fast : false
6773 matrix :
6874 os : [ubuntu-22.04-arm]
69- cibw_python : ["cp312", "cp313", " cp313t", "cp314 ", "cp314t"]
75+ cibw_python : ["cp312", "cp313t", "cp314t"]
7076 cibw_arch : ["aarch64"]
7177 steps :
7278 - uses : actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.2
7783 with :
7884 python-version : " 3.12"
7985
86+ - name : Enable Stable ABI for with-GIL interpreters
87+ if : ${{ !endsWith(matrix.cibw_python, 't') }}
88+ run : |
89+ echo CIBW_CONFIG_SETTINGS="setup-args=-Dpython.allow_limited_api=true" >> "$GITHUB_ENV"
90+
8091 - name : Build the wheel
8192 uses : pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
8293 with :
8596 CIBW_BUILD : ${{ matrix.cibw_python }}-*
8697 CIBW_ARCHS_LINUX : ${{ matrix.cibw_arch }}
8798 CIBW_ENABLE : cpython-freethreading
99+
88100 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
89101 with :
90102 name : wheels_linux_${{ matrix.cibw_arch }}_${{ matrix.cibw_python }}
97109 fail-fast : false
98110 matrix :
99111 os : [macos-15-intel, macos-14]
100- cibw_python : ["cp312", "cp313", " cp313t", "cp314 ", "cp314t"]
112+ cibw_python : ["cp312", "cp313t", "cp314t"]
101113 cibw_arch : ["x86_64", "arm64"]
102114 exclude :
103115 - os : macos-14
@@ -114,6 +126,11 @@ jobs:
114126 with :
115127 python-version : " 3.12"
116128
129+ - name : Enable Stable ABI for with-GIL interpreters
130+ if : ${{ !endsWith(matrix.cibw_python, 't') }}
131+ run : |
132+ echo CIBW_CONFIG_SETTINGS="setup-args=-Dpython.allow_limited_api=true" >> "$GITHUB_ENV"
133+
117134 - name : Build wheels for CPython (macOS) (x86_64)
118135 if : matrix.cibw_arch == 'x86_64'
119136 uses : pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
@@ -148,7 +165,7 @@ jobs:
148165 matrix :
149166 os : [windows-latest, windows-11-arm]
150167 cibw_arch : ["AMD64", "x86", "ARM64"]
151- cibw_python : ["cp312", "cp313", " cp313t", "cp314 ", "cp314t"]
168+ cibw_python : ["cp312", "cp313t", "cp314t"]
152169 exclude :
153170 - os : windows-latest
154171 cibw_arch : ARM64
@@ -184,6 +201,11 @@ jobs:
184201 with :
185202 architecture : arm64
186203
204+ - name : Enable Stable ABI for with-GIL interpreters
205+ if : ${{ !endsWith(matrix.cibw_python, 't') }}
206+ run : |
207+ echo CIBW_CONFIG_SETTINGS="setup-args=-Dpython.allow_limited_api=true" >> $env:GITHUB_ENV
208+
187209 - name : Build Windows wheels for CPython
188210 uses : pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
189211 with :
0 commit comments