1
- # name: manylinux
2
- # on: [push, pull_request]
3
- # jobs:
4
- # manylinux:
5
- # runs-on: ubuntu-latest
6
- # strategy:
7
- # matrix:
8
- # python-abi: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310, cp311-cp311]
9
- # image:
10
- # - manylinux2014_x86_64
11
- # - manylinux_2_28_x86_64
12
- # - musllinux_1_1_x86_64
13
- # container: quay.io/pypa/${{ matrix.image }}
14
- # steps:
15
- # - uses: actions/checkout@v1
16
- # - name: Install python build dependencies
17
- # run: |
18
- # # https://github.com/actions/runner/issues/2033
19
- # chown -R $(id -u):$(id -g) $PWD
20
- # /opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade pip setuptools wheel build
21
- # - name: Install system build dependencies (manylinux)
22
- # run: |
23
- # yum install -y perl-core
24
- # if: contains(matrix.image, 'manylinux')
25
- # - name: Set environment variables
26
- # shell: bash
27
- # run: |
28
- # echo "PKGVER=$(/opt/python/${{ matrix.python-abi }}/bin/python setup.py --version)" >> $GITHUB_ENV
29
- # - name: Build linux_x86_64 wheel
30
- # env:
31
- # PYXMLSEC_STATIC_DEPS: true
32
- # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
- # run: |
34
- # /opt/python/${{ matrix.python-abi }}/bin/python -m build
35
- # - name: Label manylinux wheel
36
- # run: |
37
- # ls -la dist/
38
- # auditwheel show dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl
39
- # auditwheel repair dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl
40
- # ls -la wheelhouse/
41
- # auditwheel show wheelhouse/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-*${{ matrix.image }}*.whl
42
- # - name: Install test dependencies
43
- # run: |
44
- # /opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade -r requirements-test.txt
45
- # /opt/python/${{ matrix.python-abi }}/bin/pip install xmlsec --only-binary=xmlsec --no-index --find-links=wheelhouse/
46
- # - name: Run tests
47
- # run: |
48
- # /opt/python/${{ matrix.python-abi }}/bin/pytest -v --color=yes
1
+ name : manylinux
2
+ on : [push, pull_request]
3
+ jobs :
4
+ manylinux :
5
+ runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ python-abi : [cp39-cp39, cp310-cp310, cp311-cp311, cp312-cp312, cp313-cp313]
9
+ image :
10
+ - manylinux_2_28_x86_64
11
+ - musllinux_1_1_x86_64
12
+ container : quay.io/pypa/${{ matrix.image }}
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+ - name : Install python build dependencies
16
+ run : |
17
+ # https://github.com/actions/runner/issues/2033
18
+ chown -R $(id -u):$(id -g) $PWD
19
+ /opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade pip setuptools wheel build packaging
20
+ - name : Install system build dependencies (manylinux)
21
+ run : |
22
+ yum install -y perl-core
23
+ if : contains(matrix.image, 'manylinux')
24
+ - name : Set environment variables
25
+ shell : bash
26
+ run : |
27
+ echo "PKGVER=$(/opt/python/${{ matrix.python-abi }}/bin/python setup.py --version)" >> $GITHUB_ENV
28
+ - name : Build linux_x86_64 wheel
29
+ env :
30
+ PYXMLSEC_STATIC_DEPS : true
31
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ run : |
33
+ /opt/python/${{ matrix.python-abi }}/bin/python -m build
34
+ - name : Label manylinux wheel
35
+ run : |
36
+ ls -la dist/
37
+ auditwheel show dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl
38
+ auditwheel repair dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl
39
+ ls -la wheelhouse/
40
+ auditwheel show wheelhouse/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-*${{ matrix.image }}*.whl
41
+ - name : Install test dependencies
42
+ run : |
43
+ /opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade -r requirements-test.txt
44
+ /opt/python/${{ matrix.python-abi }}/bin/pip install xmlsec --only-binary=xmlsec --no-index --find-links=wheelhouse/
45
+ - name : Run tests
46
+ run : |
47
+ /opt/python/${{ matrix.python-abi }}/bin/pytest -v --color=yes
0 commit comments