@@ -34,10 +34,11 @@ jobs:
34
34
- uses : actions/setup-python@v5
35
35
with :
36
36
python-version : ' 3.10'
37
- - name : Set CFLAGS for powerpc64le
38
- if : matrix.platform.target == 'ppc64le'
37
+ - name : Set CFLAGS for specific targets
39
38
run : |
40
- echo "CFLAGS=-std=c99" >> $GITHUB_ENV
39
+ if [[ ${{ matrix.platform.target }} == "ppc64le" || ${{ matrix.platform.target }} == "aarch64" || ${{ matrix.platform.target }} == "armv7" ]]; then
40
+ echo "CFLAGS=-std=c99" >> $GITHUB_ENV
41
+ fi
41
42
- name : Build wheels
42
43
uses : PyO3/maturin-action@v1
43
44
with :
51
52
name : wheels-linux-${{ matrix.platform.target }}
52
53
path : dist
53
54
54
- macos :
55
- runs-on : ${{ matrix.platform.runner }}
56
- strategy :
57
- matrix :
58
- platform :
59
- - runner : macos-latest
60
- target : x86_64
61
- - runner : macos-14
62
- target : aarch64
63
- steps :
64
- - uses : actions/checkout@v4
65
- - uses : actions/setup-python@v5
66
- with :
67
- python-version : ' 3.10'
68
- - name : Build wheels
69
- uses : PyO3/maturin-action@v1
70
- with :
71
- target : ${{ matrix.platform.target }}
72
- args : --release --out dist --find-interpreter
73
- sccache : ' true'
74
- - name : Upload wheels
75
- uses : actions/upload-artifact@v4
76
- with :
77
- name : wheels-macos-${{ matrix.platform.target }}
78
- path : dist
79
-
80
55
sdist :
81
56
runs-on : ubuntu-latest
82
57
steps :
@@ -96,14 +71,11 @@ jobs:
96
71
name : Release
97
72
runs-on : ubuntu-latest
98
73
if : " startsWith(github.ref, 'refs/tags/')"
99
- needs : [linux, macos, sdist]
74
+ needs : [linux, sdist]
100
75
steps :
101
76
- uses : actions/download-artifact@v4
102
77
with :
103
78
name : wheels-linux-x86_64
104
- - uses : actions/download-artifact@v4
105
- with :
106
- name : wheels-macos-x86_64
107
79
- name : Publish to PyPI
108
80
uses : PyO3/maturin-action@v1
109
81
env :
0 commit comments