-
Notifications
You must be signed in to change notification settings - Fork 105
Temporary disable all workflows except wheels #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| #!/bin/sh | ||
| set -eu | ||
|
|
||
| : "${PY_ABI:?PY_ABI is required}" | ||
| : "${MANYLINUX_IMAGE:?MANYLINUX_IMAGE is required}" | ||
|
|
||
| # Make local build helpers importable for isolated PEP 517 backend subprocesses. | ||
| export PYTHONPATH="$PWD${PYTHONPATH:+:${PYTHONPATH}}" | ||
| # Ensure dependency archives are read from the restored workspace cache even in isolated builds. | ||
| export PYXMLSEC_LIBS_DIR="$PWD/libs" | ||
|
|
||
| # Step: Install system build dependencies (manylinux only) | ||
| echo "== [container] Step: Install system build dependencies (manylinux only) ==" | ||
| case "$MANYLINUX_IMAGE" in | ||
| manylinux*) | ||
| yum install -y perl-core | ||
| ;; | ||
| esac | ||
|
|
||
| # Step: Install python build dependencies | ||
| echo "== [container] Step: Install python build dependencies ==" | ||
| /opt/python/${PY_ABI}/bin/pip install --upgrade pip setuptools wheel build 'setuptools_scm>=8' | ||
|
|
||
| # Step: Set environment variables | ||
| echo "== [container] Step: Set environment variables ==" | ||
| PKGVER=$(/opt/python/${PY_ABI}/bin/python setup.py --version) | ||
| echo "PKGVER=$PKGVER" | ||
|
|
||
| # Step: Build linux_x86_64 wheel | ||
| echo "== [container] Step: Build linux_x86_64 wheel ==" | ||
| /opt/python/${PY_ABI}/bin/python -m build | ||
|
|
||
| # Step: Label manylinux wheel | ||
| echo "== [container] Step: Label manylinux wheel ==" | ||
| ls -la dist/ | ||
| auditwheel show dist/xmlsec-${PKGVER}-${PY_ABI}-linux_x86_64.whl | ||
| auditwheel repair dist/xmlsec-${PKGVER}-${PY_ABI}-linux_x86_64.whl | ||
| ls -la wheelhouse/ | ||
| auditwheel show wheelhouse/xmlsec-${PKGVER}-${PY_ABI}-*${MANYLINUX_IMAGE}*.whl | ||
|
|
||
| # Step: Install test dependencies | ||
| echo "== [container] Step: Install test dependencies ==" | ||
| /opt/python/${PY_ABI}/bin/pip install --upgrade -r requirements-test.txt | ||
| /opt/python/${PY_ABI}/bin/pip install xmlsec --only-binary=xmlsec --no-index --find-links=wheelhouse/ | ||
|
|
||
| # Step: Run tests | ||
| echo "== [container] Step: Run tests ==" | ||
| /opt/python/${PY_ABI}/bin/pytest -v --color=yes | ||
|
|
||
| # Step: Fix mounted workspace file ownership on host | ||
| echo "== [container] Step: Fix mounted workspace file ownership on host ==" | ||
| chown -R "${HOST_UID}:${HOST_GID}" dist wheelhouse build libs || true |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| name: Cache library dependencies | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| LIBICONV_VERSION: | ||
| default: "1.18" | ||
| required: false | ||
| type: string | ||
| LIBXML2_VERSION: | ||
| default: "2.14.6" | ||
| required: false | ||
| type: string | ||
| LIBXSLT_VERSION: | ||
| default: "1.1.43" | ||
| required: false | ||
| type: string | ||
| OPENSSL_VERSION: | ||
| default: "3.6.0" | ||
| required: false | ||
| type: string | ||
| XMLSEC1_VERSION: | ||
| default: "1.3.9" | ||
| required: false | ||
| type: string | ||
| ZLIB_VERSION: | ||
| default: "1.3.1" | ||
| required: false | ||
| type: string | ||
| WIN_LIBICONV_VERSION: | ||
| default: "1.18-1" | ||
| required: false | ||
| type: string | ||
| WIN_LIBXML2_VERSION: | ||
| default: "2.11.9-3" | ||
| required: false | ||
| type: string | ||
| WIN_LIBXSLT_VERSION: | ||
| default: "1.1.39" | ||
| required: false | ||
| type: string | ||
| WIN_OPENSSL_VERSION: | ||
| default: "3.0.16.pl1" | ||
| required: false | ||
| type: string | ||
| WIN_XMLSEC1_VERSION: | ||
| default: "1.3.7" | ||
| required: false | ||
| type: string | ||
| WIN_ZLIB_VERSION: | ||
| default: "1.3.1" | ||
| required: false | ||
| type: string | ||
|
|
||
| outputs: | ||
| LIBICONV_VERSION: | ||
| value: ${{ inputs.LIBICONV_VERSION }} | ||
| LIBXML2_VERSION: | ||
| value: ${{ inputs.LIBXML2_VERSION }} | ||
| LIBXSLT_VERSION: | ||
| value: ${{ inputs.LIBXSLT_VERSION }} | ||
| OPENSSL_VERSION: | ||
| value: ${{ inputs.OPENSSL_VERSION }} | ||
| XMLSEC1_VERSION: | ||
| value: ${{ inputs.XMLSEC1_VERSION }} | ||
| ZLIB_VERSION: | ||
| value: ${{ inputs.ZLIB_VERSION }} | ||
| WIN_LIBICONV_VERSION: | ||
| value: ${{ inputs.WIN_LIBICONV_VERSION }} | ||
| WIN_LIBXML2_VERSION: | ||
| value: ${{ inputs.WIN_LIBXML2_VERSION }} | ||
| WIN_LIBXSLT_VERSION: | ||
| value: ${{ inputs.WIN_LIBXSLT_VERSION }} | ||
| WIN_OPENSSL_VERSION: | ||
| value: ${{ inputs.WIN_OPENSSL_VERSION }} | ||
| WIN_XMLSEC1_VERSION: | ||
| value: ${{ inputs.WIN_XMLSEC1_VERSION }} | ||
| WIN_ZLIB_VERSION: | ||
| value: ${{ inputs.WIN_ZLIB_VERSION }} | ||
|
|
||
| jobs: | ||
| cache_libs: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - "ubuntu-22.04" | ||
| - "ubuntu-22.04-arm" | ||
| - "macos-latest" | ||
| - "windows-2022" | ||
| - "windows-11-arm" | ||
mxamin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| env: | ||
| LIBICONV_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_LIBICONV_VERSION || inputs.LIBICONV_VERSION }} | ||
| LIBXML2_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_LIBXML2_VERSION || inputs.LIBXML2_VERSION }} | ||
| LIBXSLT_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_LIBXSLT_VERSION || inputs.LIBXSLT_VERSION }} | ||
| OPENSSL_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_OPENSSL_VERSION || inputs.OPENSSL_VERSION }} | ||
| XMLSEC1_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_XMLSEC1_VERSION || inputs.XMLSEC1_VERSION }} | ||
| ZLIB_VERSION: ${{ contains(matrix.os, 'windows-') && inputs.WIN_ZLIB_VERSION || inputs.ZLIB_VERSION }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Cache [libs] | ||
| uses: actions/cache@v4.3.0 | ||
| with: | ||
| path: | | ||
| libs/*.xz | ||
| libs/*.gz | ||
| libs/*.zip | ||
| key: libs-${{ runner.os }}-${{ runner.arch }}-${{ env.LIBXML2_VERSION }}-${{ env.LIBXSLT_VERSION }} | ||
|
|
||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.13" | ||
|
|
||
| - name: Install setuptools shim | ||
| run: python -m pip install --upgrade pip setuptools | ||
|
|
||
| - name: Download latest libraries | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: python build_libs_xmlsec.py --download-only | ||
|
|
||
| - name: Check Windows library versions | ||
| if: ${{ contains(matrix.os, 'windows-') }} | ||
| run: | | ||
| bash -c ' | ||
| for file in libs/iconv-${{ inputs.WIN_LIBICONV_VERSION }}.*.zip libs/libxml2-${{ inputs.WIN_LIBXML2_VERSION }}.*.zip libs/libxslt-${{ inputs.WIN_LIBXSLT_VERSION }}.*.zip libs/openssl-${{ inputs.WIN_OPENSSL_VERSION }}.*.zip libs/xmlsec-${{ inputs.WIN_XMLSEC1_VERSION }}.*.zip libs/zlib-${{ inputs.WIN_ZLIB_VERSION }}.*.zip; do | ||
| [[ -f "$file" ]] || { echo "MISSING: $file" ; exit 1; } | ||
| done | ||
| ' | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.