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

ci: Build linux aarch64 wheels on release #315

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
52 changes: 52 additions & 0 deletions .github/workflows/wheel-aarch64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Wheels AArch64

on:
push:
tags:
- "v*"

jobs:
build_wheels:
name: Build wheel on ${{matrix.arch}} for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
arch: [aarch64]
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_TEST_COMMAND: pytest --pyargs numcodecs
CIBW_TEST_REQUIRES: pytest
CIBW_SKIP: "pp* cp36-* *-musllinux_* *win32 *_i686 *_s390x"
CIBW_ENVIRONMENT: "DISABLE_NUMCODECS_AVX2=1 DISABLE_NUMCODECS_SSE2=1"

steps:
- uses: actions/checkout@v3
with:
submodules: true

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

- uses: pypa/[email protected]

- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse

upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
path: dist

- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/
3 changes: 3 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Maintenance
* Cleanup ``import``s in ``adhoc/blosc_memleak_check.py``
By :user:`John Kirkham <jakirkham>`, :issue:`408`.

* Build wheels for Linux AArch64 on verison release.
By :user:`Jeremy Hetzel <jthetzel>`, :issue:`315`.

.. _release_0.11.0:

0.11.0
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from glob import glob

import cpuinfo
import platform
from Cython.Distutils.build_ext import new_build_ext as build_ext
from setuptools import Extension, setup
from setuptools.errors import CCompilerError, ExecError, PlatformError
Expand All @@ -21,6 +22,8 @@
if have_cflags:
# respect compiler options set by user
pass
elif platform.machine() == 'aarch64':
pass
elif os.name == 'posix':
if disable_sse2:
base_compile_args.append('-mno-sse2')
Expand Down