Skip to content

Commit

Permalink
ci(wheels): Use newer macos x86_64 runners, and refine publish condition
Browse files Browse the repository at this point in the history
Turns out the macos-12 runners are deprecated.
Also, the publish step should only occur when pushing a tag that starts with v2.6 or v3.

Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Sep 17, 2024
1 parent 35210f1 commit 889e46d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:

macos:
name: Build wheels on macOS
runs-on: macos-12
runs-on: macos-13
# Don't run on OIIO forks
if: |
github.event_name != 'schedule' ||
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
path: ./wheelhouse/*.whl

macos_arm64:
name: Build wheels on macOS (Apple Silicon)
name: Build wheels on macOS ARM64
runs-on: macos-14
# Don't run on OIIO forks
if: |
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
if: github.event_name == 'push' && (startsWith(github.event.ref, 'refs/tags/v2.6') || startsWith(github.event.ref, 'refs/tags/v3'))
steps:
- uses: actions/setup-python@v5

Expand Down

0 comments on commit 889e46d

Please sign in to comment.