github action build linux aarch64 wheels (#551)

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
This commit is contained in:
Chizkiyahu Raful 2023-09-06 02:06:03 +03:00 коммит произвёл GitHub
Родитель 69c2c3a275
Коммит cc964abaca
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 42 добавлений и 0 удалений

42
.github/workflows/linux_arm64_wheel.yaml поставляемый Normal file
Просмотреть файл

@ -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