2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
pull_request :
7
- branches : [ main ]
7
+ branches : [main]
8
8
schedule :
9
9
- cron : " 17 3 * * *"
10
10
@@ -17,20 +17,37 @@ jobs:
17
17
runs-on : ${{ matrix.os }}
18
18
strategy :
19
19
matrix :
20
- os : [ubuntu-latest, macos-11, windows-latest]
21
- toolchain : ["1.38.0", stable, beta, nightly ]
22
- features : ["", "--features std", "--features public_imp", "--features std,public_imp"]
23
- rustflags : ["-D warnings", "-D warnings -C target-feature=+avx2", "-D warnings -C target-feature=+sse4.2"]
20
+ os : [ubuntu-latest, macos-13, macos-latest, windows-latest]
21
+ toolchain : ["1.38.0", stable, beta, nightly]
22
+ features :
23
+ [
24
+ " " ,
25
+ " --features std" ,
26
+ " --features public_imp" ,
27
+ " --features std,public_imp" ,
28
+ ]
29
+ rustflags :
30
+ [
31
+ " -D warnings" ,
32
+ " -D warnings -C target-feature=+avx2" ,
33
+ " -D warnings -C target-feature=+sse4.2" ,
34
+ ]
24
35
exclude :
25
- - os : macos-11
26
- rustflags : " -D warnings -C target-feature=+avx2"
36
+ - os : macos-latest
37
+ rustflags : " -D warnings -C target-feature=+avx2"
38
+ - os : macos-latest
39
+ rustflags : " -D warnings -C target-feature=+sse4.2"
40
+ - os : macos-latest
41
+ toolchain : " 1.38.0"
42
+ - os : macos-13
43
+ toolchain : " 1.38.0"
27
44
steps :
28
45
- uses : actions/checkout@v2
29
46
- uses : actions-rs/toolchain@v1
30
47
with :
31
- toolchain : ${{ matrix.toolchain }}
32
- profile : minimal
33
- override : true
48
+ toolchain : ${{ matrix.toolchain }}
49
+ profile : minimal
50
+ override : true
34
51
- name : Run tests
35
52
run : cargo test --no-default-features ${{ matrix.features }} --all-targets --verbose
36
53
env :
@@ -40,24 +57,24 @@ jobs:
40
57
runs-on : ubuntu-latest
41
58
strategy :
42
59
matrix :
43
- toolchain : ["1.38.0", stable, beta, nightly ]
60
+ toolchain : ["1.38.0", stable, beta, nightly]
44
61
defaults :
45
62
run :
46
63
working-directory : inlining
47
64
steps :
48
65
- uses : actions/checkout@v2
49
66
- uses : actions-rs/toolchain@v1
50
67
with :
51
- toolchain : stable
52
- profile : minimal
53
- override : true
68
+ toolchain : stable
69
+ profile : minimal
70
+ override : true
54
71
- name : Install cargo-asm
55
72
run : cargo install cargo-asm
56
73
- uses : actions-rs/toolchain@v1
57
74
with :
58
- toolchain : ${{ matrix.toolchain }}
59
- profile : minimal
60
- override : true
75
+ toolchain : ${{ matrix.toolchain }}
76
+ profile : minimal
77
+ override : true
61
78
- name : Set default toolchain
62
79
run : rustup default ${{ matrix.toolchain }}
63
80
- name : Check if the expected fns are inlined
@@ -81,10 +98,10 @@ jobs:
81
98
- uses : actions/checkout@v2
82
99
- uses : actions-rs/toolchain@v1
83
100
with :
84
- toolchain : ${{ matrix.toolchain }}
85
- profile : minimal
86
- target : ${{ matrix.target }}
87
- override : true
101
+ toolchain : ${{ matrix.toolchain }}
102
+ profile : minimal
103
+ target : ${{ matrix.target }}
104
+ override : true
88
105
- name : Install cargo-asm
89
106
run : cargo install cargo-asm
90
107
- name : Check if the expected fns are inlined
@@ -100,29 +117,29 @@ jobs:
100
117
- uses : actions/checkout@v2
101
118
- uses : actions-rs/toolchain@v1
102
119
with :
103
- toolchain : nightly
104
- profile : minimal
105
- override : true
120
+ toolchain : nightly
121
+ profile : minimal
122
+ override : true
106
123
- name : Run cargo doc
107
- run : cargo doc --features public_imp
124
+ run : cargo doc --features public_imp
108
125
env :
109
126
RUSTDOCFLAGS : --cfg docsrs
110
127
111
128
cross-build-arm-default :
112
129
runs-on : ubuntu-latest
113
130
strategy :
114
131
matrix :
115
- toolchain : ["1.38.0", stable, beta, nightly ]
132
+ toolchain : ["1.38.0", stable, beta, nightly]
116
133
target : [arm-unknown-linux-gnueabi, aarch64-unknown-linux-gnu]
117
134
features : ["--features std", ""]
118
135
steps :
119
136
- uses : actions/checkout@v2
120
137
- uses : actions-rs/toolchain@v1
121
138
with :
122
- toolchain : ${{ matrix.toolchain }}
123
- target : ${{ matrix.target }}
124
- profile : minimal
125
- override : true
139
+ toolchain : ${{ matrix.toolchain }}
140
+ target : ${{ matrix.target }}
141
+ profile : minimal
142
+ override : true
126
143
- name : Build
127
144
run : cargo build --no-default-features --target ${{ matrix.target }} ${{ matrix.features }} --verbose
128
145
@@ -137,10 +154,10 @@ jobs:
137
154
- uses : actions/checkout@v2
138
155
- uses : actions-rs/toolchain@v1
139
156
with :
140
- toolchain : ${{ matrix.toolchain }}
141
- target : ${{ matrix.target }}
142
- profile : minimal
143
- override : true
157
+ toolchain : ${{ matrix.toolchain }}
158
+ target : ${{ matrix.target }}
159
+ profile : minimal
160
+ override : true
144
161
- name : Build
145
162
run : cargo build --no-default-features --target ${{ matrix.target }} ${{ matrix.features }} --verbose
146
163
@@ -150,8 +167,19 @@ jobs:
150
167
matrix :
151
168
os : [ubuntu-latest, windows-latest]
152
169
toolchain : [stable, nightly]
153
- features : ["", "--features std", "--features public_imp", "--features std,public_imp"]
154
- rustflags : ["-D warnings", "-D warnings -C target-feature=+avx2", "-D warnings -C target-feature=+sse4.2"]
170
+ features :
171
+ [
172
+ " " ,
173
+ " --features std" ,
174
+ " --features public_imp" ,
175
+ " --features std,public_imp" ,
176
+ ]
177
+ rustflags :
178
+ [
179
+ " -D warnings" ,
180
+ " -D warnings -C target-feature=+avx2" ,
181
+ " -D warnings -C target-feature=+sse4.2" ,
182
+ ]
155
183
target : [i686-unknown-linux-gnu, i686-pc-windows-msvc]
156
184
exclude :
157
185
- os : ubuntu-latest
@@ -162,10 +190,10 @@ jobs:
162
190
- uses : actions/checkout@v2
163
191
- uses : actions-rs/toolchain@v1
164
192
with :
165
- toolchain : ${{ matrix.toolchain }}
166
- target : ${{ matrix.target }}
167
- profile : minimal
168
- override : true
193
+ toolchain : ${{ matrix.toolchain }}
194
+ target : ${{ matrix.target }}
195
+ profile : minimal
196
+ override : true
169
197
- name : Run tests
170
198
run : cargo build --no-default-features ${{ matrix.features }} --target ${{ matrix.target }} --verbose
171
199
env :
@@ -177,10 +205,10 @@ jobs:
177
205
- uses : actions/checkout@v1
178
206
- uses : actions-rs/toolchain@v1
179
207
with :
180
- toolchain : stable
181
- profile : minimal
182
- components : rustfmt
183
- override : true
208
+ toolchain : stable
209
+ profile : minimal
210
+ components : rustfmt
211
+ override : true
184
212
- name : Checko formatting
185
213
run : cargo fmt -- --check
186
214
@@ -190,10 +218,10 @@ jobs:
190
218
- uses : actions/checkout@v1
191
219
- uses : actions-rs/toolchain@v1
192
220
with :
193
- toolchain : nightly
194
- profile : minimal
195
- components : clippy
196
- override : true
221
+ toolchain : nightly
222
+ profile : minimal
223
+ components : clippy
224
+ override : true
197
225
- uses : actions-rs/clippy-check@v1
198
226
with :
199
227
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments