A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

74 lines
2.4 KiB

  1. name: Build wheels
  2. on: push
  3. jobs:
  4. build-linux:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Set up QEMU
  9. uses: docker/setup-qemu-action@v1
  10. - name: Build manylinux1 x86-64 wheels
  11. uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_x86_64
  12. with:
  13. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
  14. pip-wheel-args: '-w ./wheelhouse --no-deps'
  15. - name: Build manylinux2014 x86-64 wheels
  16. uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64
  17. with:
  18. python-versions: 'cp310-cp310'
  19. pip-wheel-args: '-w ./wheelhouse --no-deps'
  20. - name: Build manylinux 2014 aarch64 wheels
  21. uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_aarch64
  22. with:
  23. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  24. pip-wheel-args: '-w ./wheelhouse --no-deps'
  25. - name: Move to dist/
  26. run: |
  27. mkdir -p dist
  28. cp -v wheelhouse/*-manylinux*.whl dist/
  29. - uses: actions/upload-artifact@v2
  30. with:
  31. path: wheelhouse/*-manylinux*.whl
  32. - name: Publish package to PyPI
  33. # Only actually publish if a new tag was pushed
  34. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  35. uses: pypa/gh-action-pypi-publish@37e305e7413032d8422456179fee28fac7d25187
  36. with:
  37. user: __token__
  38. password: ${{ secrets.pypi_password }}
  39. build-macos:
  40. runs-on: macos-latest
  41. strategy:
  42. matrix:
  43. python-version:
  44. - '3.6'
  45. - '3.7'
  46. - '3.8'
  47. - '3.9'
  48. - '3.10'
  49. steps:
  50. - uses: actions/checkout@v2
  51. - uses: actions/setup-python@v2
  52. with:
  53. python-version: ${{ matrix.python-version }}
  54. - name: Build wheels
  55. run: |
  56. python -m pip install --upgrade pip wheel setuptools
  57. pip wheel . -w dist/
  58. ls dist/
  59. - uses: actions/upload-artifact@v2
  60. with:
  61. path: dist/*.whl
  62. - name: Publish package to PyPI
  63. # Only actually publish if a new tag was pushed
  64. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  65. # We can't use the pypa action because of https://github.com/pypa/gh-action-pypi-publish/issues/15
  66. run: |
  67. pip install twine
  68. TWINE_USERNAME="__token__" \
  69. TWINE_PASSWORD="${{ secrets.pypi_password }}" \
  70. twine upload dist/*