diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 12e7a0db..e296c467 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,13 +60,17 @@ jobs: - "lint" strategy: matrix: - include: - - rust: stable - suppression: "-Aclippy::incorrect_clone_impl_on_copy_type" - - rust: beta - suppression: "-Aclippy::non_canonical_clone_impl" + rust: + - stable + - beta # Prevent beta warnings from causing CI failure continue-on-error: ${{ matrix.rust == 'beta' }} + if: ${{ matrix.rust == 'stable' }} + env: + SUPPRESSION: "-Aclippy::incorrect_clone_impl_on_copy_type" + if: ${{ matrix.rust == 'beta' }} + env: + SUPPRESSION: "-Aclippy::non_canonical_clone_impl" steps: - uses: actions/checkout@v4 - uses: mobilecoinfoundation/actions/dcap-libs@main @@ -77,7 +81,7 @@ jobs: toolchain: ${{ matrix.rust }} components: clippy - uses: r7kamura/rust-problem-matchers@v1 - - run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings ${{ matrix.suppression }} + - run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings $SUPPRESSION build: runs-on: ubuntu-22.04