|
39 | 39 | name: wheels
|
40 | 40 | path: dist
|
41 | 41 |
|
| 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 | + |
42 | 76 | windows:
|
43 | 77 | runs-on: windows-latest
|
44 | 78 | strategy:
|
@@ -103,7 +137,7 @@ jobs:
|
103 | 137 | name: Release
|
104 | 138 | runs-on: ubuntu-latest
|
105 | 139 | if: "startsWith(github.ref, 'refs/tags/')"
|
106 |
| - needs: [linux, windows, macos, sdist] |
| 140 | + needs: [linux, linux-musl, windows, macos, sdist] |
107 | 141 | steps:
|
108 | 142 | - uses: actions/download-artifact@v3
|
109 | 143 | with:
|
|
0 commit comments