Skip to content

Commit 69a7bee

Browse files
authored
Merge pull request #26 from avandecreme/patch-1
Add musl build
2 parents 0e04287 + 383518f commit 69a7bee

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/distribute.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,40 @@ jobs:
3939
name: wheels
4040
path: dist
4141

42+
linux-musl:
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
platform: [
47+
{ target: "x86_64-unknown-linux-musl", image_tag: "x86_64-musl" },
48+
{ target: "i686-unknown-linux-musl", image_tag: "i686-musl" },
49+
{ target: "aarch64-unknown-linux-musl", image_tag: "aarch64-musl" },
50+
{ target: "armv7-unknown-linux-musleabihf", image_tag: "armv7-musleabihf" },
51+
{ target: "powerpc64le-unknown-linux-musl", image_tag: "powerpc64le-musl" },
52+
]
53+
container:
54+
image: docker://messense/rust-musl-cross:${{ matrix.platform.image_tag }}
55+
env:
56+
CFLAGS_armv7_unknown_linux_musleabihf: '-mfpu=vfpv3-d16'
57+
steps:
58+
- uses: actions/checkout@v3
59+
- uses: actions/setup-python@v4
60+
with:
61+
python-version: '3.10'
62+
- name: Build wheels - linux-musl
63+
uses: PyO3/maturin-action@v1
64+
with:
65+
target: ${{ matrix.platform.target }}
66+
args: --release --out dist --find-interpreter
67+
sccache: 'true'
68+
manylinux: musllinux_1_1
69+
container: off
70+
- name: Upload wheels
71+
uses: actions/upload-artifact@v3
72+
with:
73+
name: wheels
74+
path: dist
75+
4276
windows:
4377
runs-on: windows-latest
4478
strategy:
@@ -103,7 +137,7 @@ jobs:
103137
name: Release
104138
runs-on: ubuntu-latest
105139
if: "startsWith(github.ref, 'refs/tags/')"
106-
needs: [linux, windows, macos, sdist]
140+
needs: [linux, linux-musl, windows, macos, sdist]
107141
steps:
108142
- uses: actions/download-artifact@v3
109143
with:

0 commit comments

Comments
 (0)