-
Notifications
You must be signed in to change notification settings - Fork 79
54 lines (46 loc) · 1.23 KB
/
python_wheel_macos_arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Python Wheel Build MacOS Arm64
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
jobs:
MacOS:
runs-on: macos-13
env:
MACOSX_DEPLOYMENT_TARGET: 11.0
steps:
- uses: actions/checkout@v4
- name: Install libomp and fftw
run: |
pkg=$(brew fetch --force --bottle-tag=arm64_ventura fftw | grep 'Downloaded to' | cut -d' ' -f3)
brew install $pkg
pkg=$(brew fetch --force --bottle-tag=arm64_ventura libomp | grep 'Downloaded to' | cut -d' ' -f3)
brew install $pkg
- name: Compile libfinufft
run: |
cp make.inc.macosx_arm64 make.inc
make lib
- name: Build wheels
uses: pypa/[email protected]
env:
FINUFFT_DIR: ${{ github.workspace }}
CC: Clang
CXX: Clang++
CIBW_ARCHS_MACOS: arm64
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
with:
package-dir: ./python/finufft
output-dir: wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: macos-arm64-wheels
path: wheelhouse/*.whl
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3