Skip to content

Bump pypa/cibuildwheel from 2.14 to 2.16 #224

Bump pypa/cibuildwheel from 2.14 to 2.16

Bump pypa/cibuildwheel from 2.14 to 2.16 #224

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
release:
types:
- published
jobs:
source:
name: Build source package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker://python
with:
args: 'sh -c "pip install build && python -m build --sdist"'
- uses: actions/upload-artifact@v3
with:
path: dist/*
wheels:
name: Build binary packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ENVIRONMENT_MACOS: F77=gfortran-11 F90=gfortran-11
# Skip musllinux wheels, which take a long time to build because Numpy must be built from source
# Skip PyPy wheels
# Skip 32-bit Intel wheels
CIBW_SKIP: '*musllinux* pp* *_i686'
- uses: actions/upload-artifact@v3
with:
path: wheelhouse/*
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
needs: [source, wheels]
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1