A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

70 行
1.6 KiB

  1. name: Build
  2. on: [push, pull_request]
  3. jobs:
  4. build-wheels:
  5. name: Build wheels for ${{ matrix.os }}
  6. runs-on: ${{ matrix.runs-on }}
  7. strategy:
  8. matrix:
  9. include:
  10. - os: linux-intel
  11. runs-on: ubuntu-latest
  12. - os: linux-arm
  13. runs-on: ubuntu-24.04-arm
  14. - os: windows-intel
  15. runs-on: windows-latest
  16. - os: macos-intel
  17. runs-on: macos-13
  18. - os: macos-arm
  19. runs-on: macos-latest
  20. steps:
  21. - uses: actions/checkout@v4
  22. with:
  23. fetch-depth: 0
  24. - name: Build wheels
  25. uses: pypa/cibuildwheel@v3.0.0
  26. - uses: actions/upload-artifact@v4
  27. with:
  28. name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
  29. path: ./wheelhouse/*.whl
  30. - name: Coveralls
  31. uses: coverallsapp/github-action@v2
  32. build-sdist:
  33. name: Build source distribution
  34. runs-on: ubuntu-latest
  35. steps:
  36. - uses: actions/checkout@v4
  37. with:
  38. fetch-depth: 0
  39. - name: Build sdist
  40. run: pipx run build --sdist
  41. - uses: actions/upload-artifact@v4
  42. with:
  43. name: cibw-sdist
  44. path: dist/*.tar.gz
  45. upload-pypi:
  46. needs: [build-wheels, build-sdist]
  47. runs-on: ubuntu-latest
  48. environment: pypi
  49. permissions:
  50. id-token: write
  51. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  52. steps:
  53. - uses: actions/download-artifact@v4
  54. with:
  55. pattern: cibw-*
  56. path: dist
  57. merge-multiple: true
  58. - name: Publish to PyPI
  59. uses: pypa/gh-action-pypi-publish@release/v1