18
18
permissions :
19
19
contents : read
20
20
21
+ env :
22
+ BASE : --out dist -m ua-parser-py/Cargo.toml
23
+ COMMON : --release --out dist -m ua-parser-py/Cargo.toml
24
+
21
25
jobs :
22
26
linux :
23
- runs-on : ${{ matrix.platform.runner }}
27
+ runs-on : ubuntu-latest
24
28
strategy :
25
29
matrix :
26
30
platform :
27
- - runner : ubuntu-latest
28
- target : x86_64
29
- - runner : ubuntu-latest
30
- target : x86
31
- - runner : ubuntu-latest
32
- target : aarch64
33
- - runner : ubuntu-latest
34
- target : armv7
31
+ - target : x86_64
32
+ # - target: x86
33
+ - target : aarch64
34
+ # - target: armv7
35
35
steps :
36
36
- uses : actions/checkout@v4
37
37
- uses : actions/setup-python@v5
41
41
uses : PyO3/maturin-action@v1
42
42
with :
43
43
target : ${{ matrix.platform.target }}
44
- args : --release --out dist --zig
44
+ args : ${{ env.COMMON }} --zig
45
45
sccache : ' true'
46
46
manylinux : auto
47
47
- name : Upload wheels
@@ -51,18 +51,14 @@ jobs:
51
51
path : dist
52
52
53
53
musllinux :
54
- runs-on : ${{ matrix.platform.runner }}
54
+ runs-on : ubuntu-latest
55
55
strategy :
56
56
matrix :
57
57
platform :
58
- - runner : ubuntu-latest
59
- target : x86_64
60
- - runner : ubuntu-latest
61
- target : x86
62
- - runner : ubuntu-latest
63
- target : aarch64
64
- - runner : ubuntu-latest
65
- target : armv7
58
+ - target : x86_64
59
+ # - target: x86
60
+ - target : aarch64
61
+ # - target: armv7
66
62
steps :
67
63
- uses : actions/checkout@v4
68
64
- uses : actions/setup-python@v5
72
68
uses : PyO3/maturin-action@v1
73
69
with :
74
70
target : ${{ matrix.platform.target }}
75
- args : --release --out dist
71
+ args : ${{ env.COMMON }}
76
72
sccache : ' true'
77
73
manylinux : musllinux_1_2
78
74
- name : Upload wheels
@@ -82,14 +78,11 @@ jobs:
82
78
path : dist
83
79
84
80
windows :
85
- runs-on : ${{ matrix.platform.runner }}
81
+ runs-on : windows-latest
86
82
strategy :
87
83
matrix :
88
84
platform :
89
- - runner : windows-latest
90
- target : x64
91
- - runner : windows-latest
92
- target : x86
85
+ - target : x64
93
86
steps :
94
87
- uses : actions/checkout@v4
95
88
- uses : actions/setup-python@v5
100
93
uses : PyO3/maturin-action@v1
101
94
with :
102
95
target : ${{ matrix.platform.target }}
103
- args : --release --out dist
96
+ args : ${{ env.COMMON }}
104
97
sccache : ' true'
105
98
- name : Upload wheels
106
99
uses : actions/upload-artifact@v4
@@ -109,14 +102,12 @@ jobs:
109
102
path : dist
110
103
111
104
macos :
112
- runs-on : ${{ matrix.platform.runner }}
105
+ runs-on : macos-14
113
106
strategy :
114
107
matrix :
115
108
platform :
116
- - runner : macos-12
117
- target : x86_64
118
- - runner : macos-14
119
- target : aarch64
109
+ - target : x86_64
110
+ - target : aarch64
120
111
steps :
121
112
- uses : actions/checkout@v4
122
113
- uses : actions/setup-python@v5
@@ -126,7 +117,7 @@ jobs:
126
117
uses : PyO3/maturin-action@v1
127
118
with :
128
119
target : ${{ matrix.platform.target }}
129
- args : --release --out dist
120
+ args : ${{ env.COMMON }}
130
121
sccache : ' true'
131
122
- name : Upload wheels
132
123
uses : actions/upload-artifact@v4
@@ -142,7 +133,7 @@ jobs:
142
133
uses : PyO3/maturin-action@v1
143
134
with :
144
135
command : sdist
145
- args : --out dist
136
+ args : ${{ env.BASE }}
146
137
- name : Upload sdist
147
138
uses : actions/upload-artifact@v4
148
139
with :
0 commit comments