From 71986194262a9d9e729bfa06eb4323d9ded94e1c Mon Sep 17 00:00:00 2001 From: Phuong Nguyen Date: Mon, 10 Feb 2025 08:17:37 +0200 Subject: [PATCH 1/2] ci: Build wheel for linux aarch64 --- .github/workflows/releases.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml index 578a4cdc0..5267874dc 100644 --- a/.github/workflows/releases.yaml +++ b/.github/workflows/releases.yaml @@ -454,8 +454,6 @@ jobs: exclude: - os: windows arch: aarch64 - - os: ubuntu - arch: aarch64 - os: macos arch: x86 steps: From 9749c54ae8bd6d62096e767c1f3dac98e9d0cb65 Mon Sep 17 00:00:00 2001 From: Phuong Nguyen Date: Mon, 10 Feb 2025 08:58:59 +0200 Subject: [PATCH 2/2] ci: Set workaround CFLAGS for linux aarch64 --- .github/workflows/releases.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml index 5267874dc..6ce18545a 100644 --- a/.github/workflows/releases.yaml +++ b/.github/workflows/releases.yaml @@ -458,6 +458,11 @@ jobs: arch: x86 steps: - uses: actions/checkout@v4 + - name: Set CFLAGS for aarch64 on Ubuntu + if: matrix.os == 'ubuntu' && matrix.arch == 'aarch64' + # Workaround issue cross-compiling to aarch64 https://github.com/bobzilladev/ring-poc + run: | + echo "CFLAGS_aarch64_unknown_linux_gnu=-D__ARM_ARCH=8" >> $GITHUB_ENV - name: Build sdist if: matrix.os == 'ubuntu' && matrix.arch == 'x64' uses: PyO3/maturin-action@v1