@@ -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,40 @@ 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
+ # ARMv8 cross-compiled tests for AES intrinsics (nightly-only)
182
+ armv8 :
183
+ strategy :
184
+ matrix :
185
+ include :
186
+ - target : aarch64-unknown-linux-gnu
187
+ rust : nightly
188
+ runs-on : ubuntu-latest
189
+ steps :
190
+ - uses : actions/checkout@v1
191
+ - run : ${{ matrix.deps }}
192
+ - uses : actions-rs/toolchain@v1
193
+ with :
194
+ toolchain : ${{ matrix.rust }}
195
+ target : ${{ matrix.target }}
196
+ profile : minimal
197
+ override : true
198
+ - run : cargo install cross
199
+ - run : cross test --release --target ${{ matrix.target }}
200
+ - run : cross test --release --target ${{ matrix.target }} --features armv8,compact
201
+ - run : cross test --release --target ${{ matrix.target }} --features armv8,ctr
202
+ - run : cross test --release --target ${{ matrix.target }} --features armv8,force-soft
181
203
- run : cross test --release --target ${{ matrix.target }} --all-features
204
+
205
+ clippy :
206
+ runs-on : ubuntu-latest
207
+ steps :
208
+ - uses : actions/checkout@v1
209
+ - uses : actions-rs/toolchain@v1
210
+ with :
211
+ toolchain : 1.49.0 # MSRV
212
+ components : clippy
213
+ override : true
214
+ profile : minimal
215
+ - run : cargo clippy --features compact,ctr,force-soft -- -D warnings
0 commit comments