File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 53
53
name : wheels-linux-${{ matrix.platform.target }}
54
54
path : dist
55
55
56
+ macos :
57
+ runs-on : ${{ matrix.platform.runner }}
58
+ strategy :
59
+ matrix :
60
+ platform :
61
+ - runner : macos-latest
62
+ target : x86_64
63
+ - runner : macos-latest
64
+ target : aarch64
65
+ steps :
66
+ - uses : actions/checkout@v4
67
+ - uses : actions/setup-python@v5
68
+ with :
69
+ python-version : ' 3.10'
70
+ - name : Build wheels
71
+ uses : PyO3/maturin-action@v1
72
+ with :
73
+ target : ${{ matrix.platform.target }}
74
+ args : --release --out dist --find-interpreter
75
+ sccache : ' true'
76
+ - name : Upload wheels
77
+ uses : actions/upload-artifact@v4
78
+ with :
79
+ name : wheels-macos-${{ matrix.platform.target }}
80
+ path : dist
81
+
56
82
sdist :
57
83
runs-on : ubuntu-latest
58
84
steps :
@@ -71,12 +97,15 @@ jobs:
71
97
release :
72
98
name : Release
73
99
runs-on : ubuntu-latest
74
- if : " startsWith(github.ref, 'refs/tags/') "
75
- needs : [linux, sdist]
100
+ needs : [linux, macos, sdist]
101
+ if : startsWith(github.ref, 'refs/tags/')
76
102
steps :
77
103
- uses : actions/download-artifact@v4
78
104
with :
79
105
name : wheels-linux-x86_64
106
+ - uses : actions/download-artifact@v4
107
+ with :
108
+ name : wheels-macos-x86_64
80
109
- name : Publish to PyPI
81
110
uses : PyO3/maturin-action@v1
82
111
env :
You can’t perform that action at this time.
0 commit comments