@@ -36,12 +36,12 @@ jobs:
36
36
target : ${{ matrix.target }}
37
37
profile : minimal
38
38
override : true
39
- - run : cargo check --all- features
39
+ - run : cargo check --features compact,ctr,force-soft
40
40
- run : cargo build --release --target ${{ matrix.target }}
41
41
- run : cargo build --release --target ${{ matrix.target }} --features compact
42
42
- run : cargo build --release --target ${{ matrix.target }} --features ctr
43
43
- run : cargo build --release --target ${{ matrix.target }} --features force-soft
44
- - run : cargo build --release --target ${{ matrix.target }} --all- features
44
+ - run : cargo build --release --target ${{ matrix.target }} --features compact,ctr,force-soft
45
45
46
46
# Tests for the AES-NI backend
47
47
aesni :
79
79
- run : cargo test --release --target ${{ matrix.target }} --features compact
80
80
- run : cargo test --release --target ${{ matrix.target }} --features ctr
81
81
- run : cargo test --release --target ${{ matrix.target }} --features force-soft
82
- - run : cargo test --release --target ${{ matrix.target }} --all-features
83
82
84
83
# Tests for CPU feature autodetection with fallback to portable software implementation
85
84
autodetect :
@@ -144,7 +143,7 @@ jobs:
144
143
- run : cargo test --release --target ${{ matrix.target }} --features force-soft
145
144
- run : cargo test --release --target ${{ matrix.target }} --features force-soft,compact
146
145
- run : cargo test --release --target ${{ matrix.target }} --features force-soft,ctr
147
- - run : cargo test --release --target ${{ matrix.target }} --all- features
146
+ - run : cargo build --release --target ${{ matrix.target }} --features compact,ctr,force-soft
148
147
149
148
# Cross-compiled tests
150
149
cross :
@@ -162,7 +161,6 @@ jobs:
162
161
rust : 1.49.0 # MSRV
163
162
- target : powerpc-unknown-linux-gnu
164
163
rust : stable
165
-
166
164
runs-on : ubuntu-latest
167
165
steps :
168
166
- uses : actions/checkout@v1
@@ -178,4 +176,43 @@ jobs:
178
176
- run : cross test --release --target ${{ matrix.target }} --features compact
179
177
- run : cross test --release --target ${{ matrix.target }} --features ctr
180
178
- run : cross test --release --target ${{ matrix.target }} --features force-soft
179
+ - run : cross test --release --target ${{ matrix.target }} --features compact,ctr,force-soft
180
+
181
+ # Nightly-only cross-compiled tests (for ARM64 intrinsics)
182
+ nightly :
183
+ strategy :
184
+ matrix :
185
+ include :
186
+ # ARM64
187
+ - target : aarch64-unknown-linux-gnu
188
+ rust : 1.49.0 # MSRV
189
+ - target : aarch64-unknown-linux-gnu
190
+ rust : stable
191
+ runs-on : ubuntu-latest
192
+ steps :
193
+ - uses : actions/checkout@v1
194
+ - run : ${{ matrix.deps }}
195
+ - uses : actions-rs/toolchain@v1
196
+ with :
197
+ toolchain : ${{ matrix.rust }}
198
+ target : ${{ matrix.target }}
199
+ profile : minimal
200
+ override : true
201
+ - run : cargo install cross
202
+ - run : cross test --release --target ${{ matrix.target }}
203
+ - run : cross test --release --target ${{ matrix.target }} --features nightly,compact
204
+ - run : cross test --release --target ${{ matrix.target }} --features nightly,ctr
205
+ - run : cross test --release --target ${{ matrix.target }} --features nightly,force-soft
181
206
- run : cross test --release --target ${{ matrix.target }} --all-features
207
+
208
+ clippy :
209
+ runs-on : ubuntu-latest
210
+ steps :
211
+ - uses : actions/checkout@v1
212
+ - uses : actions-rs/toolchain@v1
213
+ with :
214
+ toolchain : 1.49.0 # MSRV
215
+ components : clippy
216
+ override : true
217
+ profile : minimal
218
+ - run : cargo clippy --features compact,ctr,force-soft -- -D warnings
0 commit comments