Skip to content

Commit d94fe42

Browse files
authored
Merge pull request #1071 from odidev/aarch64_wheel
Add Linux AArch64 wheel build support
2 parents beb2633 + 38bfb90 commit d94fe42

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/release.yaml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,29 @@ on:
1212

1313
jobs:
1414
build_wheels:
15-
name: Build wheels on ${{ matrix.os }}
15+
name: Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-10.15] # windows-2019,
20-
cibw_archs: ["auto"]
21-
# include:
22-
# - os: ubuntu-latest
23-
# cibw_archs: "aarch64"
20+
cibw_archs: [auto]
21+
cibw_build: ['cp36-* cp37-* cp38-* cp39-* cp310-*']
22+
include:
23+
- os: ubuntu-latest
24+
cibw_archs: aarch64
25+
cibw_build: cp36-*
26+
- os: ubuntu-latest
27+
cibw_archs: aarch64
28+
cibw_build: cp37-*
29+
- os: ubuntu-latest
30+
cibw_archs: aarch64
31+
cibw_build: cp38-*
32+
- os: ubuntu-latest
33+
cibw_archs: aarch64
34+
cibw_build: cp39-*
35+
- os: ubuntu-latest
36+
cibw_archs: aarch64
37+
cibw_build: cp310-*
2438

2539
steps:
2640
- name: Checkout pysam
@@ -31,6 +45,10 @@ jobs:
3145
with:
3246
python-version: '3.8'
3347

48+
- name: Set up QEMU
49+
if: ${{ matrix.cibw_archs == 'aarch64' }}
50+
uses: docker/setup-qemu-action@v1
51+
3452
- name: Install prerequisite Python libraries
3553
run: |
3654
python -m pip install --upgrade pip
@@ -40,7 +58,7 @@ jobs:
4058
if: runner.os == 'Linux'
4159
uses: pypa/cibuildwheel@v2.2.2
4260
env:
43-
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-*
61+
CIBW_BUILD: ${{ matrix.cibw_build }}
4462
CIBW_SKIP: "*musllinux*"
4563
CIBW_BEFORE_BUILD: yum install -y libcurl-devel zlib-devel bzip2-devel xz-devel && pip install cython
4664
CIBW_ARCHS: ${{ matrix.cibw_archs }}
@@ -49,7 +67,7 @@ jobs:
4967
if: runner.os != 'Linux'
5068
uses: pypa/cibuildwheel@v2.2.2
5169
env:
52-
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-*
70+
CIBW_BUILD: ${{ matrix.cibw_build }}
5371
CIBW_BEFORE_BUILD: pip install cython
5472
CIBW_ARCHS: ${{ matrix.cibw_archs }}
5573

0 commit comments

Comments
 (0)