Skip to content

Commit

Permalink
musl?
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin authored Aug 7, 2024
1 parent bff1a65 commit 2950dac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-python-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,28 @@ jobs:
- name: x86_64-unknown-linux-gnu
runs_on: ubuntu-latest
target: x86_64
manylinux: 'auto'

- name: aarch64-unknown-linux-gnu
runs_on: ubuntu-latest
target: aarch64
manylinux: 'auto'
env:
# Workaround ring 0.17 build issue
# see https://github.com/briansmith/ring/issues/1728#issuecomment-1758180655
# see https://github.com/astral-sh/uv/pull/3444
CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"

- name: x86_64-unknown-linux-musl
runs_on: ubuntu-latest
target: x86_64
# see https://github.com/astral-sh/uv/blob/9bb55c4ac0582e05d1a7a5bbd99cc7b2c82f1847/.github/workflows/build-binaries.yml#L594
manylinux: musllinux_1_1

- name: aarch64-unknown-linux-musl
runs_on: ubuntu-latest
target: aarch64
# see https://github.com/astral-sh/uv/blob/9bb55c4ac0582e05d1a7a5bbd99cc7b2c82f1847/.github/workflows/build-binaries.yml#L594
manylinux: musllinux_1_1

- name: x86_64-apple-darwin
runs_on: macos-latest
target: x86_64
Expand All @@ -54,13 +64,15 @@ jobs:

- name: Build wheels
uses: PyO3/maturin-action@v1
working-directory: engine
env: ${{ matrix._.env || fromJSON('{}') }}
with:
target: ${{ matrix._.target }}
command: build
args: --release --out engine/language_client_python/dist --manifest-path engine/language_client_python/Cargo.toml
args: --release --out language_client_python/dist --manifest-path language_client_python/Cargo.toml
sccache: "true"
manylinux: ${{ matrix._.manylinux }}

before-script-linux: |
if command -v yum &> /dev/null; then
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
Expand Down
1 change: 1 addition & 0 deletions engine/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/rust-lang/cargo/issues/8607
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = ["-C", "target-feature=-crt-static"]

0 comments on commit 2950dac

Please sign in to comment.