Repository navigation
Include xmlsec/dl.h explicitly to fix build against xmlsec 1.3.13 #841
This file contains hidden or 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: | |
| branches: [master] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref_name != 'master' }} | |
| jobs: | |
| cache_libs: | |
| uses: ./.github/workflows/cache_libs.yml | |
| secrets: inherit | |
| manylinux: | |
| needs: cache_libs | |
| runs-on: ubuntu-latest | |
| env: | |
| LIBICONV_VERSION: ${{ needs.cache_libs.outputs.LIBICONV_VERSION }} | |
| LIBXML2_VERSION: ${{ needs.cache_libs.outputs.LIBXML2_VERSION }} | |
| LIBXSLT_VERSION: ${{ needs.cache_libs.outputs.LIBXSLT_VERSION }} | |
| OPENSSL_VERSION: ${{ needs.cache_libs.outputs.OPENSSL_VERSION }} | |
| XMLSEC1_VERSION: ${{ needs.cache_libs.outputs.XMLSEC1_VERSION }} | |
| ZLIB_VERSION: ${{ needs.cache_libs.outputs.ZLIB_VERSION }} | |
| strategy: | |
| matrix: | |
| python-abi: [cp310-cp310, cp311-cp311, cp312-cp312, cp313-cp313, cp314-cp314, cp315-cp315] | |
| image: | |
| - manylinux2014_x86_64 | |
| - manylinux_2_28_x86_64 | |
| - musllinux_1_2_x86_64 | |
| steps: | |
| - uses: actions/checkout@v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache [libs] | |
| uses: actions/cache/restore@v4.3.0 | |
| with: | |
| path: | | |
| libs/*.xz | |
| libs/*.gz | |
| libs/*.zip | |
| key: >- | |
| libs-${{ runner.os }}-${{ runner.arch }}-${{ env.LIBICONV_VERSION }}-${{ env.LIBXML2_VERSION }}-${{ env.LIBXSLT_VERSION }}-${{ env.OPENSSL_VERSION }}-${{ env.XMLSEC1_VERSION }}-${{ env.ZLIB_VERSION }} | |
| # Keep this job on the host runner so JS-based actions (for example actions/cache) | |
| # can run, then execute build/test inside the target manylinux/musllinux container. | |
| - name: Build and test in container | |
| env: | |
| PYXMLSEC_STATIC_DEPS: true | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PY_ABI: ${{ matrix.python-abi }} | |
| MANYLINUX_IMAGE: ${{ matrix.image }} | |
| run: | | |
| set -euxo pipefail | |
| docker run --rm \ | |
| -v "$PWD:$PWD" \ | |
| -w "$PWD" \ | |
| -e GH_TOKEN \ | |
| -e PYXMLSEC_STATIC_DEPS \ | |
| -e PY_ABI \ | |
| -e MANYLINUX_IMAGE \ | |
| -e LIBXML2_VERSION \ | |
| -e LIBXSLT_VERSION \ | |
| -e HOST_UID="$(id -u)" \ | |
| -e HOST_GID="$(id -g)" \ | |
| "quay.io/pypa/${MANYLINUX_IMAGE}" \ | |
| sh .github/scripts/manylinux_build_and_test.sh |