@@ -61,14 +61,16 @@ jobs:
6161 m4
6262
6363 - uses : actions/setup-python@v5
64+ with :
65+ python-version : " 3.11"
6466
6567 - name : Install cibuildwheel
66- run : python -m pip install cibuildwheel==2.23.2
68+ run : python -m pip install cibuildwheel
6769
6870 - name : Build and test wheels
6971 env :
70- # skip 32-bit, PyPy , and musllinux builds
71- CIBW_SKIP : " *-win32 *-manylinux_i686 pp* * musllinux*"
72+ # skip 32-bit, musllinux , and free-threaded builds
73+ CIBW_SKIP : " *-win32 *-manylinux_i686 * musllinux* cp3??t- *"
7274 CIBW_BEFORE_BUILD_WINDOWS : pip install delvewheel
7375 CIBW_ENVIRONMENT_WINDOWS : CMAKE_ARGS="-DCMAKE_MAKE_PROGRAM=D:/a/_temp/msys64/mingw64/bin/ninja.exe" CMAKE_PROGRAM_PATH="D:/a/_temp/msys64/usr/bin" CMAKE_GENERATOR="Ninja" TEMP="D:/a/_temp/"
7476 CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : delvewheel repair -w {dest_dir} {wheel}
@@ -183,3 +185,36 @@ jobs:
183185 uses : pypa/gh-action-pypi-publish@release/v1.12
184186 with :
185187 attestations : false
188+
189+ make_sdist :
190+ name : Make source distribution
191+ runs-on : ubuntu-latest
192+ steps :
193+ - uses : actions/checkout@v5
194+ with :
195+ fetch-depth : 0
196+ submodules : true
197+
198+ - name : Build source distribution
199+ run : pipx run build --sdist
200+
201+ - uses : actions/upload-artifact@v4
202+ with :
203+ name : cibw-sdist
204+ path : dist/*.tar.gz
205+
206+ upload_sdist :
207+ needs : [build_wheels, make_sdist]
208+ environment : pypi
209+ permissions :
210+ id-token : write
211+ runs-on : ubuntu-latest
212+ if : github.event_name == 'release' && github.event.action == 'published'
213+ steps :
214+ - uses : actions/download-artifact@v5
215+ with :
216+ pattern : cibw-*
217+ path : dist
218+ merge-multiple : true
219+
220+ - uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments