Add support for ARM Linux builds in release (#1012)

Closes #992.
This commit is contained in:
Charlie Marsh 2024-01-19 15:13:07 -05:00 committed by GitHub
parent 33b35f7020
commit 7b365195cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 11 deletions

View File

@ -275,26 +275,20 @@ jobs:
*.tar.gz *.tar.gz
*.sha256 *.sha256
# TODO(charlie): Re-enable s390x-unknown-linux-gnu, powerpc64le-unknown-linux-gnu, and powerpc64-unknown-linux-gnu.
# s390x-unknown-linux-gnu works if we disable zlib-ng. The others fail in mysterious ways.
linux-cross: linux-cross:
# TODO(charlie): Enable cross-compilation.
if: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
platform: platform:
- target: aarch64-unknown-linux-gnu - target: aarch64-unknown-linux-gnu
arch: aarch64 arch: aarch64
# see https://github.com/astral-sh/puffin/issues/3791 # see https://github.com/astral-sh/ruff/issues/3791
# and https://github.com/gnzlbg/jemallocator/issues/170#issuecomment-1503228963 # and https://github.com/gnzlbg/jemallocator/issues/170#issuecomment-1503228963
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
- target: armv7-unknown-linux-gnueabihf - target: armv7-unknown-linux-gnueabihf
arch: armv7 arch: armv7
- target: s390x-unknown-linux-gnu
arch: s390x
- target: powerpc64le-unknown-linux-gnu
arch: ppc64le
- target: powerpc64-unknown-linux-gnu
arch: ppc64
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -309,7 +303,7 @@ jobs:
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
manylinux: auto manylinux: 2_28
docker-options: ${{ matrix.platform.maturin_docker_options }} docker-options: ${{ matrix.platform.maturin_docker_options }}
args: --release --locked --out dist args: --release --locked --out dist
- uses: uraimo/run-on-arch-action@v2 - uses: uraimo/run-on-arch-action@v2

View File

@ -152,7 +152,7 @@ windows-archive = ".zip"
# The archive format to use for non-windows builds (defaults .tar.xz) # The archive format to use for non-windows builds (defaults .tar.xz)
unix-archive = ".tar.gz" unix-archive = ".tar.gz"
# Target platforms to build apps for (Rust target-triple syntax) # Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-unknown-linux-musl", "x86_64-unknown-linux-musl", "i686-unknown-linux-musl", "aarch64-pc-windows-msvc", "x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "armv7-unknown-linux-gnueabihf", "powerpc64-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", "s390x-unknown-linux-gnu"] targets = ["aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-unknown-linux-musl", "x86_64-unknown-linux-musl", "i686-unknown-linux-musl", "aarch64-pc-windows-msvc", "x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "armv7-unknown-linux-gnueabihf"]
# Whether to auto-include files like READMEs and CHANGELOGs (default true) # Whether to auto-include files like READMEs and CHANGELOGs (default true)
auto-includes = false auto-includes = false
# Whether cargo-dist should create a Github Release or use an existing draft # Whether cargo-dist should create a Github Release or use an existing draft