This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch fix-pypi-crates-publish
in repository https://gitbox.apache.org/repos/asf/sedona-spatialbench.git

commit 467ae27dd40d55aacf677853fd4aa1557b8e0130
Author: Jia Yu <[email protected]>
AuthorDate: Fri Dec 19 16:59:49 2025 -0800

    Fix the failed Python build
---
 .github/workflows/build-py-packages.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/build-py-packages.yml 
b/.github/workflows/build-py-packages.yml
index f45f26e..ec4774b 100644
--- a/.github/workflows/build-py-packages.yml
+++ b/.github/workflows/build-py-packages.yml
@@ -73,6 +73,16 @@ jobs:
 
     steps:
       - uses: actions/checkout@v4
+      - name: Set ARM architecture flags for Linux cross-compilation
+        if: (matrix.target == 'aarch64' || matrix.target == 'armv7') && 
(matrix.os == 'linux' || matrix.os == 'musllinux')
+        run: |
+          if [ "${{ matrix.target }}" = "aarch64" ]; then
+            echo "CFLAGS_aarch64_unknown_linux_gnu=-D__ARM_ARCH=8" >> 
$GITHUB_ENV
+            echo "CFLAGS_aarch64_unknown_linux_musl=-D__ARM_ARCH=8" >> 
$GITHUB_ENV
+          elif [ "${{ matrix.target }}" = "armv7" ]; then
+            echo "CFLAGS_armv7_unknown_linux_gnueabihf=-D__ARM_ARCH=7" >> 
$GITHUB_ENV
+            echo "CFLAGS_armv7_unknown_linux_musleabihf=-D__ARM_ARCH=7" >> 
$GITHUB_ENV
+          fi
       - name: Build wheels
         uses: PyO3/maturin-action@v1
         with:

Reply via email to