8
8
- " [0-9]+.[0-9]+.[0-9]+[a-b][0-9]+"
9
9
- " [0-9]+.[0-9]+.[0-9]+rc[0-9]+"
10
10
workflow_dispatch :
11
+ pull_request :
11
12
12
13
concurrency :
13
14
group : wheels-${{ github.ref }}
@@ -33,10 +34,22 @@ jobs:
33
34
- [ubuntu-20.04, manylinux_ppc64le]
34
35
- [ubuntu-20.04, manylinux_s390x]
35
36
- [ubuntu-20.04, manylinux_i686]
36
- - [macos-11, macosx_*]
37
37
- [windows-2019, win_amd64]
38
38
- [windows-2019, win32]
39
39
python : ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
40
+ include :
41
+ - buildplat : [macos-11, macosx_x86_64]
42
+ python : " cp37"
43
+ - buildplat : [macos-11, macosx_*]
44
+ python : " cp38"
45
+ - buildplat : [macos-11, macosx_*]
46
+ python : " cp39"
47
+ - buildplat : [macos-14, macosx_*]
48
+ python : " cp310"
49
+ - buildplat : [macos-14, macosx_*]
50
+ python : " cp311"
51
+ - buildplat : [macos-14, macosx_*]
52
+ python : " cp312"
40
53
41
54
steps :
42
55
- name : Checkout pymongo
@@ -66,18 +79,15 @@ jobs:
66
79
# Note: the default manylinux is manylinux2014
67
80
run : python -m pip install "cibuildwheel>=2.4,<3"
68
81
69
- - name : Build MacOS Py37 Wheel
70
- # Universal wheels are not supported with Python 3.7, so we explicitly
71
- # produce an x86_64 wheel for Python 3.7 on MacOS.
72
- if : ${{ matrix.python == 'cp37' && matrix.buildplat[0] == 'macos-11' }}
82
+ - name : Build wheel
83
+ if : ${{ matrix.buildplat[0] != 'macos-14' }}
73
84
env :
74
- CIBW_BUILD : cp37-macosx_x86_64
75
- CIBW_ARCHS : x86_64
76
- CIBW_TEST_COMMAND : " python {project}/tools/fail_if_no_c.py"
85
+ CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
86
+ MACOS_TEST_SKIP : " *arm64"
77
87
run : python -m cibuildwheel --output-dir wheelhouse
78
88
79
- - name : Build wheel
80
- if : ${{ matrix.python != 'cp37' || matrix. buildplat[0] != 'macos-11 ' }}
89
+ - name : Build wheel on M1
90
+ if : ${{ matrix.buildplat[0] == 'macos-14 ' }}
81
91
env :
82
92
CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
83
93
run : python -m cibuildwheel --output-dir wheelhouse
0 commit comments