Skip to content

Commit

Permalink
Use a custom target?
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 11, 2024
1 parent ca8f7b0 commit 43e88f2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,12 @@ jobs:
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
- target: armv7-unknown-linux-musleabihf
arch: armv7
- target: powerpc64le-unknown-linux-musl
- target: ./powerpc64le-unknown-linux-musl.json
arch: ppc64le
# see https://github.com/astral-sh/uv/issues/6528
maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16
toolchain: nightly
maturin_args: -Clink-args=-Wl,-z,notls
container: powerpc64le-unknown-linux-musl
fail-fast: false

steps:
Expand All @@ -598,6 +598,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
container: ${{ matrix.platform.container || matrix.platform.target }}
manylinux: musllinux_1_1
args: ${{ matrix.platform.arch == 'ppc64le' && '--profile release-no-lto' || '--release'}} --locked --out dist --features self-update ${{ matrix.platform.arch == 'aarch64' && '--compatibility 2_17' || ''}} -- ${{ matrix.platform.maturin_args }}
docker-options: ${{ matrix.platform.maturin_docker_options }}
Expand Down
12 changes: 12 additions & 0 deletions powerpc64le-unknown-linux-musl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"llvm-target": "powerpc64le-unknown-linux-musl",
"arch": "powerpc64le",
"os": "linux",
"env": "musl",
"vendor": "unknown",
"linker-flavor": "gcc",
"relocation-model": "pic",
"code-model": "large",
"tls-model": "global-dynamic",
"executables": true
}

0 comments on commit 43e88f2

Please sign in to comment.