Skip to content

Commit a9e3321

Browse files
authored
ARROW-211 Test macOS arm64 wheel on GHA (#193)
* ARROW-211 Test macOS arm64 wheel on GHA * clean up matrix * add pr build * fix deployment target * limit py39 wheels * grammar * cleanup
1 parent 8202e0e commit a9e3321

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/release-python.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: ["main"]
66
tags:
77
- "**"
8+
pull_request:
89
workflow_dispatch:
910

1011
concurrency:
@@ -29,9 +30,19 @@ jobs:
2930
buildplat:
3031
- [ubuntu-20.04, manylinux_x86_64]
3132
- [ubuntu-20.04, manylinux_aarch64]
32-
- [macos-11, macosx_*]
33+
- [macos-14, macosx_*]
3334
- [windows-2019, win_amd64]
3435
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
36+
exclude:
37+
- buildplat: [macos-14, macosx_*]
38+
python: "cp38"
39+
- buildplat: [macos-14, macosx_*]
40+
python: "cp39"
41+
include:
42+
- buildplat: [macos-11, macosx_*]
43+
python: "cp38"
44+
- buildplat: [macos-11, macosx_*]
45+
python: "cp39"
3546

3647
steps:
3748
- name: Checkout pymongoarrow
@@ -71,8 +82,16 @@ jobs:
7182
MACOSX_DEPLOYMENT_TARGET: "10.14"
7283
run: python -m cibuildwheel --output-dir wheelhouse
7384

85+
- name: Build MacOS Py39 Wheels
86+
if: ${{ matrix.python == 'cp39' && matrix.buildplat[0] == 'macos-11' }}
87+
env:
88+
MACOS_TEST_SKIP: "*arm64"
89+
CIBW_BUILD: cp39-macosx_*
90+
MACOSX_DEPLOYMENT_TARGET: "10.14"
91+
run: python -m cibuildwheel --output-dir wheelhouse
92+
7493
- name: Build wheels
75-
if: ${{ matrix.python != 'cp38' || matrix.buildplat[0] != 'macos-11' }}
94+
if: ${{ matrix.buildplat[0] != 'macos-11' }}
7695
env:
7796
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
7897
MACOSX_DEPLOYMENT_TARGET: "10.14"

bindings/python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ repair-wheel-command = [
9696

9797
[tool.cibuildwheel.macos]
9898
archs = "x86_64 arm64"
99-
test-skip = "*arm64"
10099

101100
[tool.pytest.ini_options]
102101
minversion = "7"

0 commit comments

Comments
 (0)