Skip to content

Commit

Permalink
merge macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
xoudini committed Dec 23, 2024
1 parent 25c33e6 commit 784c07a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,19 @@ jobs:

macos-arm:
if: true
name: Build wheels on macOS (arm64)
# NOTE: macos-14 is apple silicon
runs-on: macos-14
name: Build wheels on macOS (${{ matrix.arch }})
runs-on: macos-${{ matrix.macos }}
strategy:
matrix:
arch:
- "arm64"
cpy:
- "cp310"
include:
- arch: "x86_64"
macos: 13
brew: "/usr/local/opt"
- arch: "arm64"
macos: 14
brew: "/opt/homebrew/opt"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -173,13 +177,13 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{matrix.cpy}}-macosx_${{matrix.arch}}
CIBW_BUILD: ${{ matrix.cpy }}-macosx_${{ matrix.arch }}
CIBW_ARCHS_MACOS: ${{matrix.arch}}
CIBW_ENVIRONMENT: >-
MACOSX_DEPLOYMENT_TARGET=14.0
_LIBICU_DIR="/opt/homebrew/opt/icu4c@${{ env.LIBICU_VERSION }}"
MACOSX_DEPLOYMENT_TARGET="${{ matrix.macos }}.0"
_LIBICU_DIR="${{ matrix.brew }}/icu4c@${{ env.LIBICU_VERSION }}"
- uses: actions/upload-artifact@v4
with:
name: macos-14-${{matrix.cpy}}-macosx_${{matrix.arch}}
name: macos-${{ matrix.macos }}-${{ matrix.cpy }}-macosx_${{ matrix.arch }}
path: ./wheelhouse/*.whl

0 comments on commit 784c07a

Please sign in to comment.