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.
 
 
 
 

69 lines
2.2 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: earwig/python-wheels-manylinux-build@latest-manylinux1_x86_64
  12. with:
  13. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
  14. - name: Build manylinux2014 x86-64 wheels
  15. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_x86_64
  16. with:
  17. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  18. - name: Build manylinux 2014 aarch64 wheels
  19. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_aarch64
  20. with:
  21. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  22. - uses: actions/upload-artifact@v2
  23. with:
  24. name: wheels
  25. path: dist/*.whl
  26. - name: Publish package to PyPI
  27. # Only actually publish if a new tag was pushed
  28. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  29. uses: pypa/gh-action-pypi-publish@37e305e7413032d8422456179fee28fac7d25187
  30. with:
  31. user: __token__
  32. password: ${{ secrets.pypi_password }}
  33. build-macos:
  34. runs-on: macos-latest
  35. strategy:
  36. matrix:
  37. python-version:
  38. - '3.6'
  39. - '3.7'
  40. - '3.8'
  41. - '3.9'
  42. - '3.10'
  43. steps:
  44. - uses: actions/checkout@v2
  45. - uses: actions/setup-python@v2
  46. with:
  47. python-version: ${{ matrix.python-version }}
  48. - name: Build wheels
  49. run: |
  50. python -m pip install --upgrade pip wheel setuptools
  51. pip wheel . -w dist/
  52. ls dist/
  53. - uses: actions/upload-artifact@v2
  54. with:
  55. name: wheels
  56. path: dist/*.whl
  57. - name: Publish package to PyPI
  58. # Only actually publish if a new tag was pushed
  59. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  60. # We can't use the pypa action because of https://github.com/pypa/gh-action-pypi-publish/issues/15
  61. run: |
  62. pip install twine
  63. TWINE_USERNAME="__token__" \
  64. TWINE_PASSWORD="${{ secrets.pypi_password }}" \
  65. twine upload dist/*