@@ -31,25 +31,107 @@ jobs:
31
31
- uses : actions/checkout@v1
32
32
- uses : actions-rs/toolchain@v1
33
33
with :
34
+ toolchain : ${{ matrix.rust }}
35
+ target : ${{ matrix.target }}
34
36
profile : minimal
37
+ override : true
38
+ - run : cargo build --release --target ${{ matrix.target }}
39
+
40
+ # Tests for the portable software backend
41
+ soft :
42
+ runs-on : ubuntu-latest
43
+ strategy :
44
+ matrix :
45
+ include :
46
+ # 32-bit Linux
47
+ - target : i686-unknown-linux-gnu
48
+ rust : 1.41.0 # MSRV
49
+ deps : sudo apt install gcc-multilib
50
+ - target : i686-unknown-linux-gnu
51
+ rust : stable
52
+ deps : sudo apt install gcc-multilib
53
+
54
+ # 64-bit Linux
55
+ - target : x86_64-unknown-linux-gnu
56
+ rust : 1.41.0 # MSRV
57
+ - target : x86_64-unknown-linux-gnu
58
+ rust : stable
59
+ steps :
60
+ - uses : actions/checkout@v1
61
+ - uses : actions-rs/toolchain@v1
62
+ with :
35
63
toolchain : ${{ matrix.rust }}
36
64
target : ${{ matrix.target }}
65
+ profile : minimal
37
66
override : true
38
- - run : cargo build --no-default-features --release --target ${{ matrix.target }}
39
- test :
67
+ - run : ${{ matrix.deps }}
68
+ - run : cargo check --target ${{ matrix.target }} --all-features
69
+ - run : cargo test --release --target ${{ matrix.target }}
70
+ - run : cargo test --release --target ${{ matrix.target }} --features semi_fixslice
71
+
72
+ # Tests for the AES-NI backend
73
+ aesni :
40
74
runs-on : ubuntu-latest
75
+ env :
76
+ CARGO_INCREMENTAL : 0
77
+ RUSTDOCFLAGS : " -Ctarget-feature=+aes,+ssse3"
78
+ RUSTFLAGS : " -Dwarnings -Ctarget-feature=+aes,+ssse3"
41
79
strategy :
42
80
matrix :
43
- rust :
44
- - 1.41.0 # MSRV
45
- - stable
81
+ include :
82
+ # 32-bit Linux
83
+ - target : i686-unknown-linux-gnu
84
+ rust : 1.41.0 # MSRV
85
+ deps : sudo apt install gcc-multilib
86
+ - target : i686-unknown-linux-gnu
87
+ rust : stable
88
+ deps : sudo apt install gcc-multilib
89
+
90
+ # 64-bit Linux
91
+ - target : x86_64-unknown-linux-gnu
92
+ rust : 1.41.0 # MSRV
93
+ - target : x86_64-unknown-linux-gnu
94
+ rust : stable
46
95
steps :
47
- - uses : actions/checkout@v1
48
- - uses : actions-rs/toolchain@v1
49
- with :
50
- profile : minimal
51
- toolchain : ${{ matrix.rust }}
52
- - run : cargo check --all-features
53
- - run : cargo test --no-default-features
54
- - run : cargo test
55
- - run : cargo test --all-features
96
+ - uses : actions/checkout@v1
97
+ - uses : actions-rs/toolchain@v1
98
+ with :
99
+ profile : minimal
100
+ toolchain : ${{ matrix.rust }}
101
+ - run : ${{ matrix.deps }}
102
+ - run : " echo $RUSTDOCFLAGS"
103
+ - run : cargo check --all-features
104
+ - run : cargo test --no-default-features
105
+ - run : cargo test
106
+ - run : cargo test --all-features
107
+
108
+ # Cross-compiled tests
109
+ cross :
110
+ strategy :
111
+ matrix :
112
+ include :
113
+ # ARM64
114
+ - target : aarch64-unknown-linux-gnu
115
+ rust : 1.41.0 # MSRV
116
+ - target : aarch64-unknown-linux-gnu
117
+ rust : stable
118
+
119
+ # PPC32
120
+ - target : powerpc-unknown-linux-gnu
121
+ rust : 1.41.0 # MSRV
122
+ - target : powerpc-unknown-linux-gnu
123
+ rust : stable
124
+
125
+ runs-on : ubuntu-latest
126
+ steps :
127
+ - uses : actions/checkout@v1
128
+ - run : ${{ matrix.deps }}
129
+ - uses : actions-rs/toolchain@v1
130
+ with :
131
+ toolchain : ${{ matrix.rust }}
132
+ target : ${{ matrix.target }}
133
+ profile : minimal
134
+ override : true
135
+ - run : cargo install cross
136
+ - run : cross test --release --target ${{ matrix.target }}
137
+ - run : cross test --release --target ${{ matrix.target }} --features semi_fixslice
0 commit comments