@@ -2,10 +2,14 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
6
- tags : [ 'v*' ]
5
+ branches : [main]
6
+ tags : ["v*" ]
7
7
pull_request :
8
8
9
+ env :
10
+ CARGO_PROFILE_RELEASE_LTO : " true"
11
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS : " 1"
12
+
9
13
jobs :
10
14
macos :
11
15
runs-on : macos-latest
18
22
uses : PyO3/maturin-action@v1
19
23
with :
20
24
args : --release --out dist --universal2
21
- sccache : ' true'
25
+ sccache : " true"
22
26
- name : Upload wheels
23
27
uses : actions/upload-artifact@v4
24
28
with :
70
74
with :
71
75
target : ${{ matrix.platform.target }}
72
76
args : --release --out dist
73
- sccache : ' true'
77
+ sccache : " true"
74
78
- name : Upload wheels
75
79
uses : actions/upload-artifact@v4
76
80
with :
@@ -107,17 +111,24 @@ jobs:
107
111
runs-on : ubuntu-latest
108
112
strategy :
109
113
matrix :
110
- platform : [
111
- { target: "x86_64-unknown-linux-musl", image_tag: "x86_64-musl" },
112
- { target: "i686-unknown-linux-musl", image_tag: "i686-musl" },
113
- { target: "aarch64-unknown-linux-musl", image_tag: "aarch64-musl" },
114
- { target: "armv7-unknown-linux-musleabihf", image_tag: "armv7-musleabihf" },
115
- { target: "armv7-unknown-linux-musleabi", image_tag: "armv7-musleabi" },
116
- ]
114
+ platform :
115
+ [
116
+ { target: "x86_64-unknown-linux-musl", image_tag: "x86_64-musl" },
117
+ { target: "i686-unknown-linux-musl", image_tag: "i686-musl" },
118
+ { target: "aarch64-unknown-linux-musl", image_tag: "aarch64-musl" },
119
+ {
120
+ target : " armv7-unknown-linux-musleabihf" ,
121
+ image_tag : " armv7-musleabihf" ,
122
+ },
123
+ {
124
+ target : " armv7-unknown-linux-musleabi" ,
125
+ image_tag : " armv7-musleabi" ,
126
+ },
127
+ ]
117
128
container :
118
129
image : docker://ghcr.io/rust-cross/rust-musl-cross:${{ matrix.platform.image_tag }}
119
130
env :
120
- CFLAGS_armv7_unknown_linux_musleabihf : ' -mfpu=vfpv3-d16'
131
+ CFLAGS_armv7_unknown_linux_musleabihf : " -mfpu=vfpv3-d16"
121
132
steps :
122
133
- uses : actions/checkout@v4
123
134
- name : Build
@@ -127,7 +138,7 @@ jobs:
127
138
manylinux : auto
128
139
container : off
129
140
args : --release -o dist
130
- sccache : ' true'
141
+ sccache : " true"
131
142
- name : Upload wheels
132
143
uses : actions/upload-artifact@v4
133
144
with :
@@ -222,7 +233,7 @@ jobs:
222
233
name : Release
223
234
runs-on : ubuntu-latest
224
235
if : " startsWith(github.ref, 'refs/tags/')"
225
- needs : [ macos, windows, linux ]
236
+ needs : [macos, windows, linux]
226
237
steps :
227
238
- uses : actions/download-artifact@v4
228
239
with :
0 commit comments