From a0c5948a0bb4ba7df4fdc7c5cc8249719a513a06 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 17 May 2024 04:54:43 -0400 Subject: [PATCH] ci: retag the musl aarch64 for manylinux2014 (#3624) ## Summary Fix #3439 by retagging the statically linked musl binary for manylinux2014. This is the most conservative option; the regular manylinux one could be removed as well, and I expect other archs could probably do this as well. ## Test Plan Testing on manylinux. --------- Signed-off-by: Henry Schreiner --- .github/workflows/build-binaries.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index f6dedb0f8e29..4b581102c256 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -576,7 +576,7 @@ jobs: with: target: ${{ matrix.platform.target }} manylinux: musllinux_1_1 - args: --release --locked --out dist --features self-update + args: --release --locked --out dist --features self-update ${{ matrix.platform.arch == 'aarch64' && '--compatibility 2_17' || ''}} docker-options: ${{ matrix.platform.maturin_docker_options }} rust-toolchain: ${{ matrix.platform.toolchain || 'stable' }} - uses: uraimo/run-on-arch-action@v2 @@ -591,6 +591,20 @@ jobs: python -m venv .venv .venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall .venv/bin/${{ env.MODULE_NAME }} --help + - uses: uraimo/run-on-arch-action@v2 + name: Test wheel (manylinux) + if: matrix.platform.arch == 'aarch64' + with: + arch: aarch64 + distro: ubuntu20.04 + githubToken: ${{ github.token }} + install: | + apt-get update + apt-get install -y --no-install-recommends python3 python3-pip + pip3 install -U pip + run: | + pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall + ${{ env.MODULE_NAME }} --help - name: "Upload wheels" uses: actions/upload-artifact@v4 with: