From 5b70b31c9337b8ee29d926ccba5c75e2c9313a32 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 22 Jan 2024 00:09:24 +1100 Subject: [PATCH] Add `concurrency` to `ci.yml` And use sparse registry Signed-off-by: Jiahao XU --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d509ec..3cc4abc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,7 @@ name: ci env: CARGO_TERM_COLOR: always + CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse on: merge_group: @@ -12,6 +13,10 @@ on: - '.gitignore' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number || github.sha }}-${{ inputs.additional_key }} + cancel-in-progress: true + jobs: fmt: runs-on: ubuntu-latest