diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 655357b..ca39f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,14 +14,20 @@ on: jobs: skip-check: + permissions: + actions: write + contents: read runs-on: ubuntu-latest outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: - id: skip_check uses: fkirc/skip-duplicate-actions@v5 + with: + cancel_others: true develop: + needs: skip-check runs-on: ubuntu-latest strategy: fail-fast: false @@ -50,6 +56,7 @@ jobs: cross-test: needs: skip-check + if: needs.skip-check.outputs.should_skip != 'true' runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -64,8 +71,7 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 - - if: needs.skip-check.outputs.should_skip != 'true' - run: cargo test --all-features + - run: cargo test --all-features mint: needs: skip-check