@@ -14,156 +14,115 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
+ - run : rustup update --no-self-update
18
+
17
19
- name : Rustfmt Check
18
20
run : cargo fmt --all --check
19
21
20
- clippy :
21
- name : Clippy Check of ${{ matrix.impl.name }}
22
- runs-on : ubuntu-latest
23
-
24
- strategy :
25
- matrix :
26
- impl :
27
- - name : AES-NI
28
- target : x86_64-unknown-linux-gnu
29
- caps : X86_64_UNKNOWN_LINUX_GNU
30
- target-features : +sse4.1,+aes
31
- - name : AES-NI with VAES
32
- target : x86_64-unknown-linux-gnu
33
- caps : X86_64_UNKNOWN_LINUX_GNU
34
- target-features : +vaes
35
- extra-features : --features=nightly
36
- - name : AES-NI with VAES and AVX-512
37
- target : x86_64-unknown-linux-gnu
38
- caps : X86_64_UNKNOWN_LINUX_GNU
39
- target-features : +vaes,+avx512f
40
- extra-features : --features=nightly
41
- - name : Neon
42
- target : aarch64-unknown-linux-gnu
43
- caps : AARCH64_UNKNOWN_LINUX_GNU
44
- target-features : +aes
45
- - name : ARMv8
46
- target : armv7-unknown-linux-gnueabihf
47
- caps : ARMV7_UNKNOWN_LINUX_GNUEABIHF
48
- target-features : +v8,+aes
49
- extra-features : --features=nightly
50
- - name : RV64
51
- target : riscv64gc-unknown-linux-gnu
52
- caps : RISCV64GC_UNKNOWN_LINUX_GNU
53
- target-features : +zkne,+zknd
54
- - name : RV32
55
- target : riscv32i-unknown-none-elf
56
- caps : RISCV32I_UNKNOWN_NONE_ELF
57
- target-features : +zkne,+zknd
58
- - name : Software
59
- target : x86_64-unknown-linux-gnu
60
- caps : X86_64_UNKNOWN_LINUX_GNU
61
- target-features : ' '
62
- - name : Constant-Time
63
- target : x86_64-unknown-linux-gnu
64
- caps : X86_64_UNKNOWN_LINUX_GNU
65
- target-features : ' '
66
- extra-features : --features=constant-time
67
- steps :
68
- - uses : actions/checkout@v3
69
-
70
- - run : ${{ format('echo "CARGO_TARGET_{0}_RUSTFLAGS=-C target-feature={1}" >> $GITHUB_ENV', matrix.impl.caps, matrix.impl.target-features) }}
71
-
72
- - name : Install Rust
73
- uses : actions-rs/toolchain@v1
74
- with :
75
- toolchain : nightly
76
- target : ${{ matrix.impl.target }}
77
- components : clippy
78
- profile : minimal
79
- override : true
80
-
81
- - name : Clippy Check
82
- run : cargo clippy --target ${{ matrix.impl.target }} ${{ matrix.impl.extra-features }} --no-deps -- -D clippy::pedantic
83
-
84
22
test-aesni :
85
23
strategy :
24
+ fail-fast : false
86
25
matrix :
87
26
channel : [ stable, beta, nightly ]
88
- name : Test of AESNI with ${{ matrix.channel }}
27
+ target :
28
+ - x86_64-unknown-linux-gnu
29
+ - i686-unknown-linux-gnu
30
+ - x86_64-unknown-linux-gnux32
89
31
uses : ./.github/workflows/runtest.yml
90
32
with :
91
- arch : x86_64
92
- target : x86_64-unknown-linux-gnu
33
+ target : ${{ matrix.target }}
93
34
channel : ${{ matrix.channel }}
94
35
target-features : +sse4.1,+aes
95
36
96
37
test-aesni-vaes :
97
- name : Test of AESNI with VAES
38
+ strategy :
39
+ fail-fast : false
40
+ matrix :
41
+ target :
42
+ - x86_64-unknown-linux-gnu
43
+ - i686-unknown-linux-gnu
44
+ - x86_64-unknown-linux-gnux32
98
45
uses : ./.github/workflows/runtest.yml
99
46
with :
100
- arch : x86_64
101
- target : x86_64-unknown-linux-gnu
47
+ target : ${{ matrix.target }}
102
48
channel : nightly
103
49
target-features : +vaes
104
50
extra-features : --features=nightly
105
51
106
52
test-aesni-vaes-avx512 :
107
- name : Test of AESNI with VAES and AVX512F
53
+ strategy :
54
+ fail-fast : false
55
+ matrix :
56
+ target :
57
+ - x86_64-unknown-linux-gnu
58
+ - i686-unknown-linux-gnu
59
+ - x86_64-unknown-linux-gnux32
108
60
uses : ./.github/workflows/runtest.yml
109
61
with :
110
- arch : x86_64
111
- target : x86_64-unknown-linux-gnu
62
+ target : ${{ matrix.target }}
112
63
channel : nightly
113
64
target-features : +vaes,+avx512f
114
65
extra-features : --features=nightly
115
66
116
67
test-neon :
117
68
strategy :
69
+ fail-fast : false
118
70
matrix :
119
71
channel : [ stable, beta, nightly ]
120
- name : Test of Neon on AArch64 with ${{ matrix.channel }}
121
72
uses : ./.github/workflows/runtest.yml
122
73
with :
123
- arch : aarch64
124
74
target : aarch64-unknown-linux-gnu
125
75
channel : ${{ matrix.channel }}
126
76
target-features : +aes
127
77
128
78
test-armv8 :
129
- name : Test of Neon on ARMv8
79
+ strategy :
80
+ fail-fast : false
81
+ matrix :
82
+ target :
83
+ - armv7-unknown-linux-gnueabihf
84
+ - armv7-unknown-linux-gnueabi
85
+ - thumbv7neon-unknown-linux-gnueabihf
130
86
uses : ./.github/workflows/runtest.yml
131
87
with :
132
- arch : arm
133
88
target : armv7-unknown-linux-gnueabihf
134
89
channel : nightly
135
90
target-features : +v8,+aes
136
91
extra-features : --features=nightly
137
92
138
93
test-riscv64 :
139
- name : Test of RiscV-64
140
94
uses : ./.github/workflows/runtest.yml
141
95
with :
142
- arch : riscv64
143
96
target : riscv64gc-unknown-linux-gnu
144
97
channel : nightly
145
98
target-features : +zkne,+zknd
146
99
extra-features : --features=nightly
147
100
148
101
test-software :
149
102
strategy :
103
+ fail-fast : false
150
104
matrix :
151
105
channel : [ stable, beta, nightly ]
152
- name : Test of Software Implementation with ${{ matrix.channel }}
153
- uses : ./.github/workflows/runtest.yml
154
- with :
155
- arch : x86_64
156
- target : x86_64-unknown-linux-gnu
157
- channel : ${{ matrix.channel }}
158
-
159
- test-constant-time :
160
- strategy :
161
- matrix :
162
- channel : [ stable, beta, nightly ]
163
- name : Test of Constant-time Implementation with ${{ matrix.channel }}
106
+ target :
107
+ - x86_64-unknown-linux-gnu
108
+ - i686-unknown-linux-gnu
109
+ - x86_64-unknown-linux-gnux32
110
+ - aarch64-unknown-linux-gnu
111
+ - armv7-unknown-linux-gnueabi
112
+ - armv7-unknown-linux-gnueabihf
113
+ - thumbv7neon-unknown-linux-gnueabihf
114
+ - riscv64gc-unknown-linux-gnu
115
+ - powerpc-unknown-linux-gnu
116
+ - powerpc64-unknown-linux-gnu
117
+ - powerpc64le-unknown-linux-gnu
118
+ - s390x-unknown-linux-gnu
119
+ - i586-unknown-linux-gnu
120
+ - sparc64-unknown-linux-gnu
121
+ extra-features :
122
+ - ' '
123
+ - --features=constant-time
164
124
uses : ./.github/workflows/runtest.yml
165
125
with :
166
- arch : x86_64
167
- target : x86_64-unknown-linux-gnu
126
+ target : ${{ matrix.target }}
168
127
channel : ${{ matrix.channel }}
169
- extra-features : -- features=constant-time
128
+ extra-features : ${{ matrix.extra- features }}
0 commit comments