Skip to content

Commit

Permalink
Add macos13 runners to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mwydmuch committed Dec 12, 2023
1 parent a040230 commit 2312a91
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- 'CMakeLists.txt'
- 'setup.py'
- 'pyproject.toml'
branches: [master]
branches: [master, macos13-workflow]
pull_request:
paths:
- '.github/workflows/**'
Expand All @@ -32,8 +32,8 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-12]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-20.04, ubuntu-22.04, macos-13, macos-13-xlarge]
python-version: ['3.10']
runs-on: ${{ matrix.os }}

steps:
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- 'CMakeLists.txt'
- 'setup.py'
- 'pyproject.toml'
branches: [master]
branches: [master, macos13-workflow]
release:
types: [published]

Expand All @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-11]
os: [ubuntu-22.04, macos-13, macos-13-xlarge]

steps:
- uses: actions/checkout@v3
Expand All @@ -34,7 +34,8 @@ jobs:
with:
platforms: all

- name: Build wheels
- name: Build wheels (Linux)
if: runner.os == 'Linux'
uses: pypa/[email protected]
env:
# Configure cibuildwheel to build native archs, and some emulated ones
Expand All @@ -43,6 +44,20 @@ jobs:
CIBW_BUILD_VERBOSITY: 3
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
auditwheel show {wheel} && auditwheel repair -w {dest_dir} {wheel}
- name: Build wheels (macOS x86_64)
if: matrix.os == 'macos-13'
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: x86_64
CIBW_BUILD_VERBOSITY: 3

- name: Build wheels (macOS arm64)
if: matrix.os == 'macos-13-xlarge'
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: arm64
CIBW_BUILD_VERBOSITY: 3

- name: Report built wheels
run: |
Expand Down

0 comments on commit 2312a91

Please sign in to comment.