Enable both manylinux images #240
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: manylinux | |
on: [push, pull_request] | |
jobs: | |
manylinux: | |
runs-on: ubuntu-latest | |
env: | |
PYXMLSEC_XMLSEC1_VERSION: "1.3.4-rc1" | |
PYXMLSEC_LIBXML2_VERSION: "2.12.6" | |
# PYXMLSEC_OPENSSL_VERSION: "1.1.1t" | |
# https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.39.tar.xz | |
strategy: | |
matrix: | |
python-abi: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310, cp311-cp311] | |
# python-abi: [cp39-cp39, cp310-cp310] | |
# python-abi: [cp39-cp39] | |
image: | |
- manylinux2014_x86_64 | |
- manylinux_2_28_x86_64 | |
# - manylinux2010_x86_64 | |
# - manylinux_2_24_x86_64 | |
# - musllinux_1_1_x86_64 | |
# exclude: | |
# - image: manylinux2010_x86_64 | |
# python-abi: cp311-cp311 | |
# - image: manylinux2010_i686 | |
# python-abi: cp311-cp311 | |
container: quay.io/pypa/${{ matrix.image }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install build dependencies | |
run: | | |
# yum groupinstall 'Development Tools' -y | |
# yum install perl-core zlib-devel -y | |
# yum update -y && yum install libxml2-devel libxslt-devel perl-IPC-Cmd -y | |
# yum update -y && yum install wget libxslt-devel perl-IPC-Cmd -y | |
# wget --no-check-certificate https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.6.tar.xz | |
# tar xf libxml2-2.12.6.tar.xz | |
# cd libxml2-2.12.6 | |
# ./configure PYTHON=/opt/python/cp39-cp39/bin/python PKG_CONFIG_PATH=/opt/python/cp39-cp39/lib/pkgconfig/ | |
# make install | |
# https://github.com/actions/runner/issues/2033 | |
chown -R $(id -u):$(id -g) $PWD | |
/opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade pip setuptools wheel build | |
- name: Set environment variables | |
shell: bash | |
run: | | |
echo "PKGVER=$(/opt/python/${{ matrix.python-abi }}/bin/python setup.py --version)" >> $GITHUB_ENV | |
- name: Build linux_x86_64 wheel | |
env: | |
PYXMLSEC_STATIC_DEPS: true | |
run: | | |
/opt/python/${{ matrix.python-abi }}/bin/python -m build | |
- name: Label manylinux wheel | |
run: | | |
ls -la dist/ | |
auditwheel show dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl | |
auditwheel repair dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl | |
ls -la wheelhouse/ | |
auditwheel show wheelhouse/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-*${{ matrix.image }}*.whl | |
- name: Install test dependencies | |
run: | | |
/opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade -r requirements-test.txt | |
/opt/python/${{ matrix.python-abi }}/bin/pip install xmlsec --only-binary=xmlsec --no-index --find-links=wheelhouse/ | |
- name: Run tests | |
run: | | |
/opt/python/${{ matrix.python-abi }}/bin/pytest -v --color=yes |