Skip to content

Commit

Permalink
Add linux aarch64 wheel support
Browse files Browse the repository at this point in the history
  • Loading branch information
odidev committed Mar 24, 2021
1 parent c3593ec commit b1f265b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,55 @@ jobs:
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
twine upload wheelhouse/*
arm64_make_wheels:
name: build aarch64 wheel
runs-on: [ubuntu-latest]
strategy:
matrix:
python_tag: [ "cp36-*", "cp37-*", "cp38-*", "cp39-*"]

steps:

## Setup Env

- uses: actions/checkout@v2.3.3
with:
submodules: recursive

- uses: actions/setup-python@v2
with:
python-version: 3.8

- uses: docker/setup-qemu-action@v1
name: Set up QEMU

- name: Install cibuildwheel
run: pip install --upgrade cibuildwheel

- name: Build Linux
env:
CIBW_ARCHS_LINUX: aarch64
CIBW_BUILD: ${{matrix.python_tag}}
run: |
python -m cibuildwheel --output-dir wheelhouse
## Upload

- name: Check with Twine
run: |
pip install --upgrade twine
twine check wheelhouse/*
- name: Upload artifacts to GitHub
if: github.event_name == 'release'
uses: actions/upload-artifact@v2
with:
name: wheels
path: ./wheelhouse

- name: Release to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
twine upload wheelhouse/*

0 comments on commit b1f265b

Please sign in to comment.