Skip to content

Commit 652f212

Browse files
committed
clippy: Make github inline annotation only work on specific platform and feature
Signed-off-by: Jerens Lensun <[email protected]>
1 parent 3726cf9 commit 652f212

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ jobs:
3838
run: |
3939
chmod +x etc/ci/clippy-annotation.sh
4040
41-
- name: clippy
41+
- name: clippy (with annotations)
42+
if: matrix.platform.target == 'x86_64-unknown-linux-gnu' && matrix.features == ''
4243
run: cargo clippy --features "${{ matrix.features }}" --target ${{ matrix.platform.target }} --message-format=json | etc/ci/clippy-annotation.sh
4344

45+
- name: clippy
46+
if: matrix.platform.target != 'x86_64-unknown-linux-gnu' || matrix.features != ''
47+
run: cargo clippy --features "${{ matrix.features }}" --target ${{ matrix.platform.target }} --message-format=json
48+
4449
- name: Cargo test
4550
run: cargo test --features "${{ matrix.features }} enable-slow-tests" --target ${{ matrix.platform.target }}
4651

0 commit comments

Comments
 (0)