Skip to content

Commit

Permalink
Add aarhc64 wheels
Browse files Browse the repository at this point in the history
Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev committed Aug 20, 2021
1 parent a01bdf0 commit 755bc19
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,34 @@ jobs:

wheel-linux:
runs-on: ubuntu-latest
name: Build Linux wheels
name: Build Linux wheels(${{ matrix.image }})
strategy:
matrix:
include:
- python-version: 3.6
pyo3-python: /opt/python/cp36-cp36m/bin/python
- python-version: 3.7
pyo3-python: /opt/python/cp37-cp37m/bin/python
- python-version: 3.8
pyo3-python: /opt/python/cp38-cp38/bin/python
- python-version: 3.9
pyo3-python: /opt/python/cp39-cp39/bin/python
image: [pypywheels/manylinux2010-pypy_x86_64, quay.io/pypa/manylinux2014_aarch64]
python-version: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39]
env:
pyo3-python: /opt/python/${{ matrix.python-version }}/bin/python
#- python-version: pypy-3.6
# pyo3-python: /opt/pypy/pypy3.6-7.3.3/bin/python
#- python-version: pypy-3.7
# pyo3-python: /opt/pypy/pypy3.7-7.3.4/bin/python
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Set up QEMU
if: matrix.image == 'quay.io/pypa/manylinux2014_aarch64'
id: qemu
uses: docker/setup-qemu-action@v1
- name: Build manylinux wheels
uses: addnab/docker-run-action@v2
with:
image: pypywheels/manylinux2010-pypy_x86_64
image: ${{ matrix.image }}
options: -v ${{ github.workspace }}:/io -e TERM=$TERM
shell: bash
run: |
${{ matrix.pyo3-python }} -m pip install -U -r /io/ci/requirements.txt
${{ matrix.pyo3-python }} -m pip wheel -vv /io -w /tmp
for whl in /tmp/*.whl; do ${{ matrix.pyo3-python }} -m auditwheel repair $whl -w /io/dist; done
${{ env.pyo3-python }} -m pip install -U -r /io/ci/requirements.txt
${{ env.pyo3-python }} -m pip wheel -vv /io -w /tmp
for whl in /tmp/*.whl; do ${{ env.pyo3-python }} -m auditwheel repair $whl -w /io/dist; done
- name: Store built wheels
uses: actions/upload-artifact@v2
with:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,39 @@ jobs:
run: python -m unittest discover -vv
if: ${{ matrix.python-release != 'v3.6' }}

test_linux_aarch64:
name: "Test ${{ matrix.pyver }} aarch64"
strategy:
matrix:
pyver: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39]
fail-fast: false
runs-on: ubuntu-latest
env:
py: /opt/python/${{ matrix.pyver }}/bin/python
img: quay.io/pypa/manylinux2014_aarch64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Setup Rust stable
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- name: Test
run: |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
${{ env.img }} \
bash -exc '${{ env.py }} -m venv .env && \
source .env/bin/activate && \
python -m pip install -U -r ci/requirements.txt && \
python setup.py build_ext --inplace --debug && \
if \[ ${{ matrix.pyver }} != cp36-cp36m \] ; then
python -m unittest discover -vv
fi && \
deactivate'
test_osx:
name: Test (OSX)
runs-on: macos-latest
Expand Down

0 comments on commit 755bc19

Please sign in to comment.