feat: build wheels for aarch64 to allow use in embedded systems (#283)
This commit is contained in:
parent
fa48bc025c
commit
d0ac990a7a
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -103,11 +103,14 @@ jobs:
|
|||||||
build_wheels:
|
build_wheels:
|
||||||
needs: [release]
|
needs: [release]
|
||||||
|
|
||||||
name: Build wheels on ${{ matrix.os }}
|
name: Build wheels on ${{ matrix.os }} with arch ${{ matrix.arch }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04]
|
os: [ubuntu-20.04]
|
||||||
|
arch:
|
||||||
|
- "x86_64"
|
||||||
|
- "aarch64"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -115,6 +118,12 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: "main"
|
ref: "main"
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
if: matrix.arch == 'aarch64'
|
||||||
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
|
||||||
|
with:
|
||||||
|
platforms: arm64
|
||||||
|
|
||||||
# Used to host cibuildwheel
|
# Used to host cibuildwheel
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@ -144,6 +153,7 @@ jobs:
|
|||||||
CIBW_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc
|
CIBW_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc
|
||||||
CIBW_BUILD_VERBOSITY: 3
|
CIBW_BUILD_VERBOSITY: 3
|
||||||
REQUIRE_CYTHON: 1
|
REQUIRE_CYTHON: 1
|
||||||
|
CIBW_ARCHS: ${{ matrix.arch }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user