-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize cibuildwheel configuration.
Build and test macos-arm64 packages natively.
- Loading branch information
Showing
3 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,35 +20,45 @@ env: | |
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels [py${{ matrix.python_version }}, ${{ matrix.os }}] | ||
runs-on: ${{ matrix.os }}-${{ matrix.os_version }} | ||
name: Build wheels [${{ matrix.python }}, ${{ matrix.os.base }}-${{ matrix.os.arch }}] | ||
runs-on: ${{ matrix.os.base }}-${{ matrix.os.version }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
include: | ||
- os_version: 'latest' | ||
os: | ||
- base: ubuntu | ||
version: latest | ||
arch: 'x86_64' | ||
- base: windows | ||
version: latest | ||
arch: 'amd64' | ||
- base: macos | ||
version: 14 | ||
arch: 'arm64' | ||
- base: macos | ||
version: 13 | ||
arch: 'x86_64' | ||
|
||
python: ['cp38', 'cp39', 'cp310', 'cp311', 'cp312'] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_PROJECT_REQUIRES_PYTHON: "==${{ matrix.python_version }}.*" | ||
CIBW_BUILD: "${{ matrix.python }}-*" | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
name: dist-python-${{ matrix.python_version }}-${{ matrix.os }} | ||
name: dist-python-${{ matrix.python }}-${{ matrix.os.base }}-${{ matrix.os.arch }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
|
||
- uses: actions/[email protected] | ||
name: Install Python | ||
|
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
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