From 392062756ae3f018b40bb205d0db454c76d0d41a Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Fri, 18 Oct 2024 00:38:06 -0400 Subject: [PATCH] Fix building linux wheels (#9) * Install openssl in linux wheels * fix wheel? * fix alpine * try fewer * build on branch * Only manylinux x86_64 for now * no sccache * restore wheel build only on tag --- .github/workflows/wheels.yml | 93 +++++++++++++++++++----------------- 1 file changed, 50 insertions(+), 43 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index b7e58496..f134ad10 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,7 +1,7 @@ # This file is (mostly) autogenerated by maturin v1.7.1 # To update, run # -# maturin generate-ci github -m arro3-core/Cargo.toml +# maturin generate-ci github -m object-store-rs/Cargo.toml # name: Build wheels @@ -26,16 +26,17 @@ jobs: platform: - runner: ubuntu-latest target: x86_64 - - runner: ubuntu-latest - target: x86 - - runner: ubuntu-latest - target: aarch64 - - runner: ubuntu-latest - target: armv7 - - runner: ubuntu-latest - target: s390x - - runner: ubuntu-latest - target: ppc64le + # - runner: ubuntu-latest + # target: x86 + # - runner: ubuntu-latest + # target: aarch64 + # Not supported in manylinux 2_28? + # - runner: ubuntu-latest + # target: armv7 + # - runner: ubuntu-latest + # target: s390x + # - runner: ubuntu-latest + # target: ppc64le steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -46,44 +47,50 @@ jobs: with: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter --manifest-path object-store-rs/Cargo.toml - sccache: "true" - manylinux: auto + # Fails with "no module named pip" + sccache: "false" + manylinux: manylinux_2_28 + before-script-linux: | + yum update -y + yum install openssl openssl-devel perl-IPC-Cmd -y - name: Upload wheels uses: actions/upload-artifact@v4 with: name: wheels-linux-${{ matrix.platform.target }}-object-store-rs path: dist - musllinux: - runs-on: ${{ matrix.platform.runner }} - strategy: - matrix: - platform: - - runner: ubuntu-latest - target: x86_64 - - runner: ubuntu-latest - target: x86 - - runner: ubuntu-latest - target: aarch64 - - runner: ubuntu-latest - target: armv7 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.x - - name: Build wheels - uses: PyO3/maturin-action@v1 - with: - target: ${{ matrix.platform.target }} - args: --release --out dist --find-interpreter --manifest-path object-store-rs/Cargo.toml - sccache: "true" - manylinux: musllinux_1_2 - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: wheels-musllinux-${{ matrix.platform.target }}-object-store-rs - path: dist + # musllinux: + # runs-on: ${{ matrix.platform.runner }} + # strategy: + # matrix: + # platform: + # - runner: ubuntu-latest + # target: x86_64 + # - runner: ubuntu-latest + # target: x86 + # - runner: ubuntu-latest + # target: aarch64 + # - runner: ubuntu-latest + # target: armv7 + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-python@v5 + # with: + # python-version: 3.x + # - name: Build wheels + # uses: PyO3/maturin-action@v1 + # with: + # target: ${{ matrix.platform.target }} + # args: --release --out dist --find-interpreter --manifest-path object-store-rs/Cargo.toml + # sccache: "true" + # manylinux: musllinux_1_2 + # before-script-linux: | + # apk add --update openssl + # - name: Upload wheels + # uses: actions/upload-artifact@v4 + # with: + # name: wheels-musllinux-${{ matrix.platform.target }}-object-store-rs + # path: dist windows: runs-on: ${{ matrix.platform.runner }}