Skip to content

Commit

Permalink
Build and publish armv6l wheels for maturin
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 26, 2022
1 parent 44c9abe commit a22c937
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,19 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [
{ target: "aarch64-unknown-linux-musl", image_tag: "aarch64-musl", manylinux: "2014" },
{ target: "armv7-unknown-linux-musleabihf", image_tag: "armv7-musleabihf", manylinux: "2014"},
{ target: "i686-unknown-linux-musl", image_tag: "i686-musl", manylinux: "2010"},
]
platform:
- target: "aarch64-unknown-linux-musl"
image_tag: "aarch64-musl"
compatibility: "manylinux2014 musllinux_1_1"
- target: "armv7-unknown-linux-musleabihf"
image_tag: "armv7-musleabihf"
compatibility: "manylinux2014 musllinux_1_1"
- target: "i686-unknown-linux-musl"
image_tag: "i686-musl"
compatibility: "manylinux2010 musllinux_1_1"
- target: "arm-unknown-linux-musleabihf"
image_tag: "arm-musleabihf"
compatibility: "linux"
container:
image: docker://ghcr.io/messense/rust-musl-cross:${{ matrix.platform.image_tag }}
env:
Expand All @@ -169,7 +177,7 @@ jobs:
sudo python3 -m pip install -U --pre maturin
maturin build --release -b bin -o dist \
--target ${{ matrix.platform.target }} \
--manylinux ${{ matrix.platform.manylinux }} musllinux_1_1 \
--compatibility ${{ matrix.platform.compatibility }} \
--features password-storage
- name: Archive binary
run: tar czvf target/release/maturin-${{ matrix.platform.target }}.tar.gz -C target/${{ matrix.platform.target }}/release maturin
Expand All @@ -193,12 +201,10 @@ jobs:
platform:
- target: "powerpc64le-unknown-linux-musl"
image: "ghcr.io/messense/rust-musl-cross:powerpc64le-musl"
manylinux: "2014"
musllinux: "musllinux_1_1"
compatibility: "manylinux2014 musllinux_1_1"
- target: "s390x-unknown-linux-gnu"
image: "ghcr.io/messense/manylinux2014-cross:s390x"
manylinux: "2014"
musllinux: ""
compatibility: "manylinux2014"
container:
image: docker://${{ matrix.platform.image }}
steps:
Expand All @@ -213,7 +219,7 @@ jobs:
sudo python3 -m pip install -U --pre maturin
maturin build --release -b bin -o dist \
--target ${{ matrix.platform.target }} \
--manylinux ${{ matrix.platform.manylinux }} ${{ matrix.platform.musllinux }} \
--compatibility ${{ matrix.platform.compatibility }} \
--no-default-features \
--features log,upload,human-panic,password-storage
- name: Archive binary
Expand Down

0 comments on commit a22c937

Please sign in to comment.