fixup! Install needed macos deps #44
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
| name: Python wheels | |
| on: | |
| push: | |
| branches: | |
| - ci-macos | |
| tags: | |
| - "*" | |
| jobs: | |
| sdist: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install libfuse-dev and pkg-config | |
| run: sudo apt install -y libfuse-dev pkg-config | |
| - name: Install Python build dependencies | |
| run: python -m pip install --upgrade build | |
| - name: Build sdist | |
| run: python -m build --sdist | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdist | |
| path: dist/*.tar.gz | |
| if-no-files-found: error | |
| retention-days: 2 | |
| wheel: | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| TAGS: cp310-cp310 cp311-cp311 cp312-cp312 | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-20.04 | |
| target: | |
| # https://quay.io/organization/pypa | |
| - [ manylinux_2_28, x86_64 ] | |
| - [ manylinux_2_28, aarch64 ] | |
| include: | |
| - os: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| if: runner.os == 'Linux' | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Build Python manylinux wheels | |
| if: runner.os == 'Linux' | |
| env: | |
| POLICY: ${{ matrix.target[0] }} | |
| PLATFORM: ${{ matrix.target[1] }} | |
| run: make manylinux POLICY="$POLICY" PLATFORM="$PLATFORM" TAGS="$TAGS" | |
| - name: Install build deps (macOS) | |
| if: runner.os == 'macOS' | |
| run: pip install setuptools build | |
| - name: Build Python macOS wheels | |
| if: runner.os == 'macOS' | |
| run: python -m build --wheel --outdir wheelhouse | |
| # https://github.com/actions/upload-artifact | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ join(matrix.target, '-') }} | |
| path: wheelhouse/*.whl | |
| if-no-files-found: error | |
| retention-days: 2 | |
| merge-artifacts: | |
| name: Download and create one artifact from all jobs | |
| needs: | |
| - sdist | |
| - wheel | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Download sdist artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| name: sdist | |
| - name: Download wheel artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| pattern: wheels-* | |
| merge-multiple: true | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist | |
| if-no-files-found: error |