Add Python 3.11 to Github Actions builds (#306)

* Add Python3.11 to the Github Actions, in the manylinux2014 build as well as the
packaging test.

I added a second image, x86_64, to the manylinux2014 build matrix - the i686
build didn't immediately pass, so I left it out.

* Move the bundled capnproto library forward to 0.10.3.

* Remove the 2010 build entirely, and update the 2014 build to include i686.
This commit is contained in:
Matt Sachtler
2023-01-26 16:28:21 -08:00
committed by GitHub
parent 1b19b6db13
commit 01c4469e08
4 changed files with 46 additions and 79 deletions

41
.github/workflows/manylinux2014.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: manylinux2014
on: [push, pull_request]
jobs:
manylinux2014:
name: "manylinux2014( ${{ matrix.python-version }}, ${{ matrix.container-image }})"
runs-on: ubuntu-latest
strategy:
max-parallel: 99
matrix:
python-version: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311']
container-image: ['quay.io/pypa/manylinux2014_aarch64', 'quay.io/pypa/manylinux2014_x86_64', 'quay.io/pypa/manylinux2014_i686']
fail-fast: false
env:
py: /opt/python/${{ matrix.python-version }}/bin/python
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 \
${{ matrix.container-image }} \
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