Use macOS xlarge runner for Apple Silicon wheels (#2506)

This commit is contained in:
Cuong Duong 2023-10-10 23:26:08 +11:00 committed by GitHub
parent 89f30fd2fb
commit f131aa6e67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 7 deletions

View file

@ -12,8 +12,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8"]
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
python-version: ["3.10"]
os: ["macos-latest", "ubuntu-latest", "windows-latest", "macos-latest-xlarge"]
fail-fast: false
steps:

View file

@ -15,15 +15,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
os: ["macos-latest", "ubuntu-latest", "windows-latest", "macos-latest-xlarge"]
cibw_arch: ["native"]
# Build one wheel (ABI = none) using first build spec, then test on all python versions.
cibw_build: ["cp37-* cp38-* cp39-* cp310-* cp311-*"]
cibw_build: ["cp39-* cp310-* cp311-*"]
include:
- os: ubuntu-latest
cibw_arch: aarch64
# Each test takes 30 mins, which is too long to run sequentially, so we test once only.
cibw_build: "cp37-*"
cibw_build: "cp39-*"
fail-fast: false
steps:
@ -36,7 +36,14 @@ jobs:
Echo "OS_VERSION=$os_version" >> $env:GITHUB_ENV
- name: "Checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
# Temporary, until pipx is added to the macOS large runner image
- name: "Install pipx"
if: matrix.os == 'macos-latest-xlarge'
run: |
brew install pipx
pipx ensurepath
- name: "Restore RTools40"
if: startsWith(runner.os, 'Windows')
@ -53,7 +60,7 @@ jobs:
platforms: arm64
- name: "Build wheels"
uses: pypa/cibuildwheel@v2.11.4
uses: pypa/cibuildwheel@v2.16.2
with:
package-dir: python
env: