diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4d31e24540..4383aefa6a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,9 +33,10 @@ jobs: with: target: x86_64 args: --release --out dist --sdist - - name: "Install built wheel - x86_64" + - name: "Test wheel - x86_64" run: | pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall + ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -68,9 +69,10 @@ jobs: uses: PyO3/maturin-action@v1 with: args: --release --universal2 --out dist - - name: "Install built wheel - universal2" + - name: "Test wheel - universal2" run: | pip install dist/${{ env.PACKAGE_NAME }}-*universal2.whl --force-reinstall + ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -113,11 +115,12 @@ jobs: with: target: ${{ matrix.platform.target }} args: --release --out dist - - name: "Install built wheel" + - name: "Test wheel" if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} shell: bash run: | python -m pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall + ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -158,10 +161,11 @@ jobs: target: ${{ matrix.target }} manylinux: auto args: --release --out dist - - name: "Install built wheel" + - name: "Test wheel" if: ${{ startsWith(matrix.target, 'x86_64') }} run: | pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall + ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -187,6 +191,9 @@ jobs: platform: - target: aarch64-unknown-linux-gnu arch: aarch64 + # see https://github.com/charliermarsh/ruff/issues/3791 + # and https://github.com/gnzlbg/jemallocator/issues/170#issuecomment-1503228963 + maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 - target: armv7-unknown-linux-gnueabihf arch: armv7 - target: s390x-unknown-linux-gnu @@ -195,6 +202,7 @@ jobs: arch: ppc64le - target: powerpc64-unknown-linux-gnu arch: ppc64 + steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -207,10 +215,11 @@ jobs: with: target: ${{ matrix.platform.target }} manylinux: auto + docker-options: ${{ matrix.platform.maturin_docker_options }} args: --release --out dist - uses: uraimo/run-on-arch-action@v2 if: matrix.platform.arch != 'ppc64' - name: Install built wheel + name: Test wheel with: arch: ${{ matrix.platform.arch }} distro: ubuntu20.04 @@ -221,6 +230,7 @@ jobs: pip3 install -U pip run: | pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall + ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -260,7 +270,7 @@ jobs: target: ${{ matrix.target }} manylinux: musllinux_1_2 args: --release --out dist - - name: "Install built wheel" + - name: "Test wheel" if: matrix.target == 'x86_64-unknown-linux-musl' uses: addnab/docker-run-action@v3 with: @@ -269,6 +279,7 @@ jobs: run: | apk add py3-pip pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links /io/dist/ --force-reinstall + ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -294,8 +305,10 @@ jobs: platform: - target: aarch64-unknown-linux-musl arch: aarch64 + maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 - target: armv7-unknown-linux-musleabihf arch: armv7 + steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -309,8 +322,9 @@ jobs: target: ${{ matrix.platform.target }} manylinux: musllinux_1_2 args: --release --out dist + docker-options: ${{ matrix.platform.maturin_docker_options }} - uses: uraimo/run-on-arch-action@v2 - name: Install built wheel + name: Test wheel with: arch: ${{ matrix.platform.arch }} distro: alpine_latest @@ -319,6 +333,7 @@ jobs: apk add py3-pip run: | pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall + ruff check --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: