Merge pull request #271 from odidev/odidev_pycapnp
Add linux aarch64 wheel build support
This commit is contained in:
36
.github/workflows/manylinux2010.yml
vendored
36
.github/workflows/manylinux2010.yml
vendored
@@ -37,3 +37,39 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: manylinux2010_dist
|
name: manylinux2010_dist
|
||||||
path: wheelhouse
|
path: wheelhouse
|
||||||
|
|
||||||
|
manylinux2014:
|
||||||
|
name: "manylinux2014( ${{ matrix.python-version }}, quay.io/pypa/manylinux2014_aarch64)"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39']
|
||||||
|
fail-fast: false
|
||||||
|
env:
|
||||||
|
py: /opt/python/${{ matrix.python-version }}/bin/python
|
||||||
|
img: quay.io/pypa/manylinux2014_aarch64
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up QEMU
|
||||||
|
id: qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
- name: Building pycapnp and packaging
|
||||||
|
run: |
|
||||||
|
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
|
||||||
|
${{ env.img }} \
|
||||||
|
bash -exc '${{ env.py }} -m venv .env && \
|
||||||
|
source .env/bin/activate && \
|
||||||
|
echo "Install Dependencies" && \
|
||||||
|
python -m pip install -r requirements.txt && \
|
||||||
|
python -m pip install auditwheel && \
|
||||||
|
echo "Build pycapnp and install" && \
|
||||||
|
python setup.py build && \
|
||||||
|
echo "Packaging" && \
|
||||||
|
python setup.py bdist_wheel && \
|
||||||
|
python setup.py sdist && \
|
||||||
|
auditwheel repair dist/*linux_*.whl && \
|
||||||
|
deactivate'
|
||||||
|
- uses: actions/upload-artifact@v1.0.0
|
||||||
|
with:
|
||||||
|
name: manylinux2014_dist
|
||||||
|
path: wheelhouse
|
||||||
|
|||||||
Reference in New Issue
Block a user