From 7fd2022e8ea13de7fd47b29f3b88f363ca1f87ea Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 1 Dec 2022 12:47:14 +0000 Subject: [PATCH] .github: Ensure target used for clippy tests Signed-off-by: Rob Bradford --- .github/workflows/quality.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index a0dda68e4..70fc77a91 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -53,14 +53,14 @@ jobs: with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --no-default-features --tests --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --features "kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Clippy (default features) uses: actions-rs/cargo@v1 with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --tests -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --tests -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Clippy (default features + guest_debug) if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} @@ -68,14 +68,14 @@ jobs: with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --tests --features "guest_debug" -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --tests --features "guest_debug" -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Clippy (default features + tracing) uses: actions-rs/cargo@v1 with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --tests --features "tracing" -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --tests --features "tracing" -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Clippy (mshv) if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} @@ -83,7 +83,7 @@ jobs: with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --no-default-features --tests --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Clippy (mshv + kvm) if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} @@ -91,7 +91,7 @@ jobs: with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --no-default-features --tests --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Clippy (kvm + tdx) if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} @@ -99,7 +99,7 @@ jobs: with: use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy - args: --locked --all --all-targets --no-default-features --tests --features "tdx,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks + args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --features "tdx,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks - name: Check build did not modify any files run: test -z "$(git status --porcelain)"