Skip to content

Commit

Permalink
Build macOS wheels from the sdist
Browse files Browse the repository at this point in the history
We switched from building our Linux wheels from a repo clone to building
them from a build sdist, but we missed making the same change for
building our macOS wheels.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
  • Loading branch information
godlygeek committed Jul 31, 2023
1 parent 28b0bea commit d853623
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
path: ./wheelhouse/*.whl

build_wheels_macos:
needs: [build_sdist]
name: Wheel for MacOS-${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -106,7 +107,17 @@ jobs:
cibw_arch: ["x86_64", "arm64"]

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
- uses: actions/download-artifact@v3
with:
name: tests
path: tests
- name: Extract sdist
run: |
tar zxvf dist/*.tar.gz --strip-components=1
- name: Sets env vars for compilation
if: matrix.cibw_arch == 'arm64'
run: |
Expand Down

0 comments on commit d853623

Please sign in to comment.