Skip to content

Commit

Permalink
fix ci_build linux arm64 arch support
Browse files Browse the repository at this point in the history
  • Loading branch information
wyapx committed Oct 10, 2024
1 parent 5a1bfcb commit 62cb186
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,37 @@ jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CIBW_ARCHS_LINUX: "auto aarch64"

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
cibw_archs: "native"
- os: ubuntu-latest
cibw_archs: "aarch64"
- os: windows-latest
cibw_archs: "native ARM64"
- os: macos-latest
cibw_archs: "native arm64"

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected]

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

make_sdist:
name: Make SDist
Expand Down

0 comments on commit 62cb186

Please sign in to comment.