Skip to content

Commit

Permalink
Add concurrency to ci.yml
Browse files Browse the repository at this point in the history
And use sparse registry

Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Jan 21, 2024
1 parent da85184 commit 5b70b31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: ci

env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

on:
merge_group:
Expand All @@ -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
Expand Down

0 comments on commit 5b70b31

Please sign in to comment.