From 4644f8a6435c844f7ab87b526c8d9a30cf46659f Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Fri, 20 Sep 2024 11:25:42 +0800 Subject: [PATCH] github: Remove redundant `use-cross` The steps with predicates of `x86_64` targets would never turn on `use-cross`, removing them from quality check. Signed-off-by: Ruoqing He --- .github/workflows/quality.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index f74333802..932aa5f10 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -91,7 +91,6 @@ jobs: if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1 with: - use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "mshv" -- -D warnings -D clippy::undocumented_unsafe_blocks @@ -99,7 +98,6 @@ jobs: if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1 with: - use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "mshv,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks @@ -107,7 +105,6 @@ jobs: if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1 with: - use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "sev_snp" -- -D warnings -D clippy::undocumented_unsafe_blocks @@ -115,7 +112,6 @@ jobs: if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1 with: - use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "igvm" -- -D warnings -D clippy::undocumented_unsafe_blocks @@ -123,7 +119,6 @@ jobs: if: ${{ matrix.target == 'x86_64-unknown-linux-gnu' }} uses: actions-rs/cargo@v1 with: - use-cross: ${{ matrix.target != 'x86_64-unknown-linux-gnu' }} command: clippy args: --target=${{ matrix.target }} --locked --all --all-targets --no-default-features --tests --examples --features "tdx,kvm" -- -D warnings -D clippy::undocumented_unsafe_blocks