diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d8f1c49d1..5a9087b4e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,6 +21,10 @@ on: - "release/*" - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} + env: CARGO_INCREMENTAL: 0 CARGO_PROFILE_DEV_DEBUG: 1 @@ -29,10 +33,6 @@ env: CARGO_NET_RETRY: 10 RUSTUP_MAX_RETRIES: 10 -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} - jobs: check-features: if: ${{ github.event_name != 'pull_request' }}