Add arm64 wheels and prep for 0.7.0 release (#82) #19
Workflow file for this run
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 Dist | |
on: | |
push: | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
- "[0-9]+.[0-9]+.[0-9]+.post[0-9]+" | |
- "[0-9]+.[0-9]+.[0-9]+[a-b][0-9]+" | |
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" | |
workflow_dispatch: | |
pull_request: | |
workflow_call: | |
inputs: | |
ref: | |
required: true | |
type: string | |
concurrency: | |
group: dist-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -eux {0} | |
jobs: | |
build_wheels: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-24.04-arm, ubuntu-latest] | |
name: Build CPython-${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pypa/cibuildwheel@352e01339f0a173aa2a3eb57f01492e341e83865 # v3.13.3 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.os }}-wheel | |
path: ./wheelhouse/*.whl | |
if-no-files-found: error | |
make_sdist: | |
name: Make SDist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Build SDist | |
run: | | |
python -m pip install build | |
python -m build --sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "sdist" | |
path: dist/*.tar.gz | |
collect_dist: | |
runs-on: ubuntu-latest | |
needs: [build_wheels, make_sdist] | |
name: Download Wheels | |
steps: | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v4 | |
- name: Flatten directory | |
working-directory: . | |
run: | | |
find . -mindepth 2 -type f -exec mv {} . \; | |
find . -type d -empty -delete | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: all-dist-${{ github.run_id }} | |
path: "./*" |