diff --git a/.github/workflows/build-python-release.reusable.yaml b/.github/workflows/build-python-release.reusable.yaml index eea628a60..ac951c22b 100644 --- a/.github/workflows/build-python-release.reusable.yaml +++ b/.github/workflows/build-python-release.reusable.yaml @@ -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 @@ -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 diff --git a/engine/.cargo/config.toml b/engine/.cargo/config.toml index 1261fea82..31294d345 100644 --- a/engine/.cargo/config.toml +++ b/engine/.cargo/config.toml @@ -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"]