mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-20 09:03:39 +00:00
Use macOS xlarge runner for Apple Silicon wheels (#2506)
This commit is contained in:
parent
89f30fd2fb
commit
f131aa6e67
2 changed files with 14 additions and 7 deletions
4
.github/workflows/build-and-test.yml
vendored
4
.github/workflows/build-and-test.yml
vendored
|
|
@ -12,8 +12,8 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.8"]
|
python-version: ["3.10"]
|
||||||
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
|
os: ["macos-latest", "ubuntu-latest", "windows-latest", "macos-latest-xlarge"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
17
.github/workflows/wheel.yml
vendored
17
.github/workflows/wheel.yml
vendored
|
|
@ -15,15 +15,15 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
|
os: ["macos-latest", "ubuntu-latest", "windows-latest", "macos-latest-xlarge"]
|
||||||
cibw_arch: ["native"]
|
cibw_arch: ["native"]
|
||||||
# Build one wheel (ABI = none) using first build spec, then test on all python versions.
|
# 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:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
cibw_arch: aarch64
|
cibw_arch: aarch64
|
||||||
# Each test takes 30 mins, which is too long to run sequentially, so we test once only.
|
# 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
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -36,7 +36,14 @@ jobs:
|
||||||
Echo "OS_VERSION=$os_version" >> $env:GITHUB_ENV
|
Echo "OS_VERSION=$os_version" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: "Checkout repo"
|
- 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"
|
- name: "Restore RTools40"
|
||||||
if: startsWith(runner.os, 'Windows')
|
if: startsWith(runner.os, 'Windows')
|
||||||
|
|
@ -53,7 +60,7 @@ jobs:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
- name: "Build wheels"
|
- name: "Build wheels"
|
||||||
uses: pypa/cibuildwheel@v2.11.4
|
uses: pypa/cibuildwheel@v2.16.2
|
||||||
with:
|
with:
|
||||||
package-dir: python
|
package-dir: python
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue