github action build linux aarch64 wheels (#551)
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
This commit is contained in:
Родитель
69c2c3a275
Коммит
cc964abaca
|
@ -0,0 +1,42 @@
|
|||
name: build wheel linux aarch64
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
cibuildwheel:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
||||
cibw_skip: ['*musllinux*', '*manylinux*']
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python_version }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Create wheels linux aarch64
|
||||
run: |
|
||||
PYTHON_VERSION=${{ matrix.python_version }}
|
||||
CIBW_BUILD="cp${PYTHON_VERSION//.}-*"
|
||||
export CIBW_BUILD
|
||||
export CIBW_SKIP=${{ matrix.cibw_skip }}
|
||||
pip install cibuildwheel
|
||||
python -m cibuildwheel --platform linux --archs aarch64 --output-dir ./out
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: wheels
|
||||
path: ./out
|
Загрузка…
Ссылка в новой задаче