File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 44
44
- ' cp39-*'
45
45
arch : ['x86_64']
46
46
include :
47
+ - py : ' cp38-*'
48
+ arch : ' arm64'
47
49
- py : ' cp39-*'
48
50
arch : ' arm64'
49
51
runs-on : ' macos-10.15'
@@ -57,16 +59,35 @@ jobs:
57
59
uses : actions/setup-python@v2
58
60
with :
59
61
python-version : ' 3.8'
62
+ if : ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
60
63
61
64
- uses : actions/checkout@v2
62
65
63
66
- name : Install Dependencies
64
67
run : |
65
68
pip install --require-hashes -r ci/requirements.macoswheels.txt
69
+ if : ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
70
+
71
+ - name : Install Dependencies
72
+ run : |
73
+ /Applications/Xcode_12.2.app/Contents/Developer/usr/bin/pip3 install --user --require-hashes -r ci/requirements.macoswheels.txt
74
+ /Applications/Xcode_12.2.app/Contents/Developer/usr/bin/pip3 install --user wheel
75
+ if : ${{ matrix.py == 'cp38-*' && matrix.arch == 'arm64' }}
66
76
67
77
- name : Build Wheel
68
78
run : |
69
79
cibuildwheel --output-dir dist
80
+ if : ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
81
+
82
+ - name : Build Wheel
83
+ run : |
84
+ /Applications/Xcode_12.2.app/Contents/Developer/usr/bin/python3 setup.py bdist_wheel
85
+ env :
86
+ _PYTHON_HOST_PLATFORM : ' macosx-11.0-arm64'
87
+ ARCHFLAGS : ' -arch arm64'
88
+ MACOSX_DEPLOYMENT_TARGET : ' 11.0'
89
+ SDKROOT : ' /Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk'
90
+ if : ${{ matrix.py == 'cp38-*' && matrix.arch == 'arm64' }}
70
91
71
92
- name : Upload Wheel
72
93
uses : actions/upload-artifact@v2
You can’t perform that action at this time.
0 commit comments