Fixed comments #137
Workflow file for this run
This file contains 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: package | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ['macos-13', 'macos-14', 'ubuntu-22.04', 'windows-2022'] | |
name: build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pipx install cibuildwheel==2.21.3 | |
- run: cibuildwheel --output-dir wheelhouse | |
env: | |
# The Apple linker does not recognise one of the flags passed to it | |
# while building for PyPy. Skip it. | |
CIBW_SKIP: pp*-macosx* | |
CIBW_TEST_COMMAND: python -m unittest discover -s {package}/tests -t {package} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: wheelhouse/*.whl | |
release: | |
if: github.ref_type == 'tag' | |
needs: [build] | |
runs-on: ubuntu-22.04 | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pipx install hatch | |
- run: hatch build -t sdist | |
- uses: actions/download-artifact@v4 | |
- run: | | |
gh release create ${{ github.ref_name }} -t ${{ github.ref_name }} --generate-notes | |
gh release upload ${{ github.ref_name }} */*.tar.gz */*.whl | |
env: | |
GH_TOKEN: ${{ github.token }} |