Skip to content

Commit d902674

Browse files
committed
.github: Exclude aproxy from clippy checks
aproxy can be excluded from non-`target=x86_64-unknown-linux-gnu` clippy checks. Co-developed-by: Stefano Garzarella <[email protected]> Signed-off-by: Tyler Fanelli <[email protected]>
1 parent 9abbf4c commit d902674

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/rust.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions-rs/cargo@v1
5757
with:
5858
command: clippy
59-
args: --workspace --exclude igvmbuilder --exclude igvmmeasure --exclude svsm-fuzz --exclude packit --exclude stage1 --all-features -- -D warnings
59+
args: --workspace --exclude igvmbuilder --exclude igvmmeasure --exclude svsm-fuzz --exclude packit --exclude stage1 --exclude aproxy --all-features -- -D warnings
6060

6161
- name: Clippy on std x86_64-unknown-linux-gnu
6262
uses: actions-rs/cargo@v1
@@ -151,7 +151,7 @@ jobs:
151151

152152
- name: Clippy with undocumented_unsafe_blocks for PR branch
153153
run: |
154-
cargo clippy --workspace --all-features --exclude packit --exclude stage1 --exclude svsm-fuzz --exclude igvmbuilder --exclude igvmmeasure --quiet -- -W clippy::undocumented_unsafe_blocks 2> clippy_warnings_pr.txt
154+
cargo clippy --workspace --all-features --exclude packit --exclude stage1 --exclude svsm-fuzz --exclude igvmbuilder --exclude igvmmeasure --exclude aproxy --quiet -- -W clippy::undocumented_unsafe_blocks 2> clippy_warnings_pr.txt
155155
156156
# Required because after the next checkout everything is removed.
157157
- name: Upload PR warnings artifact
@@ -171,7 +171,7 @@ jobs:
171171

172172
- name: Clippy with undocumented_unsafe_blocks for base branch
173173
run: |
174-
cargo clippy --workspace --all-features --exclude packit --exclude stage1 --exclude svsm-fuzz --exclude igvmbuilder --exclude igvmmeasure --quiet -- -W clippy::undocumented_unsafe_blocks 2> clippy_warnings_base.txt
174+
cargo clippy --workspace --all-features --exclude packit --exclude stage1 --exclude svsm-fuzz --exclude igvmbuilder --exclude igvmmeasure --exclude aproxy --quiet -- -W clippy::undocumented_unsafe_blocks 2> clippy_warnings_base.txt
175175
176176
- name: Download PR warnings artifact
177177
uses: actions/download-artifact@v3
@@ -189,7 +189,7 @@ jobs:
189189
echo "ERROR: $(($PR_WARNINGS - $BASE_WARNINGS)) new undocumented unsafe code blocks detected in this PR"
190190
echo "enabling the clippy::undocumented_unsafe_blocks lint in this way:"
191191
echo "$ cargo clippy --workspace --all-features --exclude packit --exclude stage1 --exclude svsm-fuzz \\"
192-
echo " --exclude igvmbuilder --exclude igvmmeasure -- -W clippy::undocumented_unsafe_blocks"
192+
echo " --exclude igvmbuilder --exclude igvmmeasure --exclude aproxy -- -W clippy::undocumented_unsafe_blocks"
193193
echo ""
194194
diff --color -u clippy_warnings_base.txt clippy_warnings_pr.txt
195195
exit 1

0 commit comments

Comments
 (0)