From a671e070a7a4ca154eade8d71c869ec175f3ac95 Mon Sep 17 00:00:00 2001 From: Nils Homer Date: Mon, 27 Jan 2025 16:39:54 -0700 Subject: [PATCH] ci: fix wheels build for osx --- .github/workflows/wheels.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 22fefa7..6d014ca 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -31,34 +31,22 @@ jobs: - os: macos-latest target: macosx arch: x86_64 - # Skipping macos arm64 builds because cibuildwheel currently doesn't support testing - # arm64 macos wheels on github action runners. - # See: https://github.com/pypa/cibuildwheel/issues/2111 - # - os: macos-latest - # target: macosx - # arch: arm64 + - os: macos-latest + target: macosx + arch: arm64 steps: - uses: actions/checkout@v4 with: submodules: "true" - - uses: actions/setup-python@v5 - if: runner.os != 'macOS' || runner.arch != 'ARM64' - - # See: https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64 - uses: actions/setup-python@v5 with: python-version: 3.8 - if: runner.os == 'macOS' && runner.arch == 'ARM64' - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.15.0 - - name: Set macOS deployment target - if: startsWith(matrix.platform.target, 'macos') - run: echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1-2)" >> $GITHUB_ENV - - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: