Skip to content

Commit

Permalink
Fix building linux wheels (#9)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kylebarron authored Oct 18, 2024
1 parent bda2be6 commit 3920627
Showing 1 changed file with 50 additions and 43 deletions.
93 changes: 50 additions & 43 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 3920627

Please sign in to comment.