Fix wheel builds and uploads for musl ARM (#2518)

If you look at https://pypi.org/project/uv/0.1.22/#files...

- We didn't upload the ARMv6 wheel (I thought I had removed the `# Skip
for `arm`, which is not supported by PyPI.`), it must've gotten re-added
in a rebase or something.
- We lost the musllinux builds for ARM. I think this is because I built
them as manylinux.
This commit is contained in:
Charlie Marsh 2024-03-18 11:47:20 -07:00 committed by GitHub
parent 9afb360524
commit 2c98154934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,8 +272,6 @@ jobs:
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
- target: armv7-unknown-linux-gnueabihf - target: armv7-unknown-linux-gnueabihf
arch: armv7 arch: armv7
- target: armv7-unknown-linux-musleabihf
arch: armv7
- target: arm-unknown-linux-musleabihf - target: arm-unknown-linux-musleabihf
arch: arm arch: arm
@ -306,8 +304,6 @@ jobs:
pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
${{ env.MODULE_NAME }} --help ${{ env.MODULE_NAME }} --help
- name: "Upload wheels" - name: "Upload wheels"
# Skip for `arm`, which is not supported by PyPI.
if: ${{ matrix.platform.arch != 'arm' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wheels-${{ matrix.platform.target }} name: wheels-${{ matrix.platform.target }}
@ -540,6 +536,8 @@ jobs:
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-musl
arch: aarch64 arch: aarch64
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
- target: armv7-unknown-linux-musleabihf
arch: armv7
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4