Skip to content

Commit 2801927

Browse files
committed
fixed testing harness, readded clippy, but only once per impl. made the armv7 targets neon.
1 parent 1d443d5 commit 2801927

File tree

1 file changed

+67
-5
lines changed

1 file changed

+67
-5
lines changed

.github/workflows/common.yml

+67-5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,63 @@ jobs:
2727
command: fmt
2828
args: --all --check
2929

30+
clippy:
31+
continue-on-error: true
32+
name: Clippy Check of ${{ matrix.impl.name }}
33+
runs-on: ubuntu-latest
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
impl:
39+
- name: AES-NI
40+
target: x86_64-unknown-linux-gnu
41+
caps: X86_64_UNKNOWN_LINUX_GNU
42+
target-features: +sse4.1,+aes
43+
- name: AES-NI with VAES
44+
target: x86_64-unknown-linux-gnu
45+
caps: X86_64_UNKNOWN_LINUX_GNU
46+
target-features: +vaes
47+
- name: AES-NI with VAES and AVX-512
48+
target: x86_64-unknown-linux-gnu
49+
caps: X86_64_UNKNOWN_LINUX_GNU
50+
target-features: +vaes,+avx512f
51+
- name: Neon
52+
target: aarch64-unknown-linux-gnu
53+
caps: AARCH64_UNKNOWN_LINUX_GNU
54+
target-features: +aes
55+
- name: RV64
56+
target: riscv64gc-unknown-linux-gnu
57+
caps: RISCV64GC_UNKNOWN_LINUX_GNU
58+
target-features: +zkne,+zknd
59+
- name: RV32
60+
target: riscv32i-unknown-none-elf
61+
caps: RISCV32I_UNKNOWN_NONE_ELF
62+
target-features: +zkne,+zknd
63+
- name: Software
64+
target: x86_64-unknown-linux-gnu
65+
caps: X86_64_UNKNOWN_LINUX_GNU
66+
target-features: ''
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-feature) }}
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+
uses: actions-rs/cargo@v1
83+
with:
84+
command: clippy
85+
args: --target ${{ matrix.impl.target }} --features=nightly --no-deps --frozen
86+
3087
test-x86:
3188
strategy:
3289
fail-fast: false
@@ -78,6 +135,16 @@ jobs:
78135
fail-fast: false
79136
matrix:
80137
target:
138+
- triple: armv7-linux-androideabi
139+
caps: ARMV7_LINUX_ANDROIDEABI
140+
- triple: armv7-unknown-linux-gnueabi
141+
caps: ARMV7_UNKNOWN_LINUX_GNUEABI
142+
- triple: armv7-unknown-linux-gnueabihf
143+
caps: ARMV7_UNKNOWN_LINUX_GNUEABIHF
144+
- triple: armv7-unknown-linux-musleabi
145+
caps: ARMV7_UNKNOWN_LINUX_MUSLEABI
146+
- triple: armv7-unknown-linux-musleabihf
147+
caps: ARMV7_UNKNOWN_LINUX_MUSLEABIHF
81148
- triple: thumbv7neon-linux-androideabi
82149
caps: THUMBV7NEON_LINUX_ANDROIDEABI
83150
- triple: thumbv7neon-unknown-linux-gnueabihf
@@ -111,11 +178,6 @@ jobs:
111178
- arm-unknown-linux-musleabihf
112179
- armv5te-unknown-linux-gnueabi
113180
- armv5te-unknown-linux-musleabi
114-
- armv7-linux-androideabi
115-
- armv7-unknown-linux-gnueabi
116-
- armv7-unknown-linux-gnueabihf
117-
- armv7-unknown-linux-musleabi
118-
- armv7-unknown-linux-musleabihf
119181
- loongarch64-unknown-linux-gnu
120182
- mips-unknown-linux-gnu
121183
- mips-unknown-linux-musl

0 commit comments

Comments
 (0)