Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linux aarch64 wheel support #54

Merged
merged 1 commit into from
Apr 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,50 @@ jobs:
with:
name: wheels
path: ./wheelhouse

build_aarch64_wheels:
name: Build wheel on aarch64
runs-on: ubuntu-18.04
strategy:
matrix:
python_tag: [ "cp35-*", "cp36-*", "cp37-*", "cp38-*", "cp39-*"]
env:
CIBW_ARCHS_LINUX: aarch64
CIBW_BUILD: ${{matrix.python_tag}}
CIBW_BEFORE_ALL: "yum -y update && yum install -y blas-devel lapack-devel suitesparse-devel"
CIBW_TEST_REQUIRES: "pytest cvxopt"
CIBW_TEST_COMMAND: "pytest -s {project}/module/tests -k \"not codegen and not mkl\" "

steps:
- uses: actions/checkout@master
with:
submodules: 'recursive'

- uses: actions/setup-python@v1
name: Install Python 3.9
with:
python-version: "3.9"

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==1.10.0

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

- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
- name: Release to pypi
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
python -m pip install --upgrade twine
twine upload wheelhouse/*
- name: Upload artifacts to github
uses: actions/upload-artifact@v1
with:
name: wheels
path: ./wheelhouse