Skip to content

Commit 62cb186

Browse files
committed
fix ci_build linux arm64 arch support
1 parent 5a1bfcb commit 62cb186

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/python-publish.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,37 @@ jobs:
1616
build_wheels:
1717
name: Build wheels on ${{ matrix.os }}
1818
runs-on: ${{ matrix.os }}
19-
env:
20-
CIBW_ARCHS_LINUX: "auto aarch64"
2119

2220
strategy:
2321
fail-fast: true
2422
matrix:
25-
os: [ubuntu-latest, windows-latest, macos-latest]
23+
include:
24+
- os: ubuntu-latest
25+
cibw_archs: "native"
26+
- os: ubuntu-latest
27+
cibw_archs: "aarch64"
28+
- os: windows-latest
29+
cibw_archs: "native ARM64"
30+
- os: macos-latest
31+
cibw_archs: "native arm64"
2632

2733
steps:
28-
- uses: actions/checkout@v4
29-
30-
- name: Build wheels
31-
uses: pypa/[email protected]
32-
33-
- uses: actions/upload-artifact@v3
34-
with:
35-
path: ./wheelhouse/*.whl
34+
- name: Set up QEMU
35+
if: matrix.cibw_archs == 'aarch64'
36+
uses: docker/setup-qemu-action@v2
37+
with:
38+
platforms: arm64
39+
40+
- uses: actions/checkout@v4
41+
42+
- name: Build wheels
43+
uses: pypa/[email protected]
44+
env:
45+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
46+
47+
- uses: actions/upload-artifact@v3
48+
with:
49+
path: ./wheelhouse/*.whl
3650

3751
make_sdist:
3852
name: Make SDist

0 commit comments

Comments
 (0)