diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 054b366..74ecf6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -173,13 +177,13 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.22.0 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