@@ -101,7 +101,7 @@ jobs:
101101 echo "ARTIFACT_NAME=${DISTRO#*:}" >> "$GITHUB_OUTPUT"
102102
103103 - name : Upload debs as artifacts
104- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
104+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
105105 with :
106106 name : debs-${{ steps.artifact-name.outputs.ARTIFACT_NAME }}
107107 path : debs/*
@@ -141,20 +141,25 @@ jobs:
141141 python-version : " 3.x"
142142
143143 - name : Install cibuildwheel
144- run : python -m pip install cibuildwheel==3.0.0
144+ run : python -m pip install cibuildwheel==3.2.1
145145
146146 - name : Only build a single wheel on PR
147147 if : startsWith(github.ref, 'refs/pull/')
148- run : echo "CIBW_BUILD="cp39 -manylinux_*"" >> $GITHUB_ENV
148+ run : echo "CIBW_BUILD="cp310 -manylinux_*"" >> $GITHUB_ENV
149149
150150 - name : Build wheels
151151 run : python -m cibuildwheel --output-dir wheelhouse
152152 env :
153- # Skip testing for platforms which various libraries don't have wheels
154- # for, and so need extra build deps.
155- CIBW_TEST_SKIP : pp3*-* *i686* *musl*
153+ # The platforms that we build for are determined by the
154+ # `tool.cibuildwheel.skip` option in `pyproject.toml`.
156155
157- - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
156+ # We skip testing wheels for the following platforms in CI:
157+ #
158+ # pp3*-* (PyPy wheels) broke in CI (TODO: investigate).
159+ # musl: (TODO: investigate).
160+ CIBW_TEST_SKIP : pp3*-* *musl*
161+
162+ - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
158163 with :
159164 name : Wheel-${{ matrix.os }}
160165 path : ./wheelhouse/*.whl
@@ -175,7 +180,7 @@ jobs:
175180 - name : Build sdist
176181 run : python -m build --sdist
177182
178- - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
183+ - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
179184 with :
180185 name : Sdist
181186 path : dist/*.tar.gz
@@ -191,7 +196,7 @@ jobs:
191196 runs-on : ubuntu-latest
192197 steps :
193198 - name : Download all workflow run artifacts
194- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
199+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
195200 - name : Build a tarball for the debs
196201 # We need to merge all the debs uploads into one folder, then compress
197202 # that.
@@ -200,16 +205,11 @@ jobs:
200205 mv debs*/* debs/
201206 tar -cvJf debs.tar.xz debs
202207 - name : Attach to release
203- # Pinned to work around https://github.com/softprops/action-gh-release/issues/445
204- uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v0.1.15
205208 env :
206209 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
207- with :
208- files : |
209- Sdist/*
210- Wheel*/*
211- debs.tar.xz
212- # if it's not already published, keep the release as a draft.
213- draft : true
214- # mark it as a prerelease if the tag contains 'rc'.
215- prerelease : ${{ contains(github.ref, 'rc') }}
210+ run : |
211+ gh release upload "${{ github.ref_name }}" \
212+ Sdist/* \
213+ Wheel*/* \
214+ debs.tar.xz \
215+ --repo ${{ github.repository }}
0 commit comments