Skip to content

Commit

Permalink
Use cibw 2.17 for macos builds?
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Jul 4, 2024
1 parent e6f9d20 commit 56ecf61
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,24 @@ jobs:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_TEST_SKIP: ${{ steps.cibuildwheel_env.outputs.test_skip }}
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} --all --depending && delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
if: ${{ inputs.os_type }} != "" && (${{ inputs.os_type }} == matrix.os || ${{ inputs.os_type }} == "all")
if: runner.os != 'macOS' && (${{ inputs.os_type }} != "" && (${{ inputs.os_type }} == matrix.os || ${{ inputs.os_type }} == "all"))
# ...
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: "{package}/pyproject.toml"
- name: Build macos wheels
id: build_wheel_macos
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python-version }}-*
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_TEST_SKIP: ${{ steps.cibuildwheel_env.outputs.test_skip }}
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} --all --depending && delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
if: runner.os == 'macOS' && (${{ inputs.os_type }} != "" && (${{ inputs.os_type }} == matrix.os || ${{ inputs.os_type }} == "all"))

- uses: actions/upload-artifact@v3
if: ${{ steps.build_wheel.outcome }} == "success"
if: ${{ steps.build_wheel.outcome }} == "success" || ${{ steps.build_wheel_macos.outcome }} == "success"
with:
path: ./wheelhouse/*.whl

Expand Down

0 comments on commit 56ecf61

Please sign in to comment.