Skip to content

Commit ea8bab8

Browse files
committed
Speed up CI by canceling in-progress runs
Prevents redundant CI runs when new commits are pushed to the same branch, while ensuring main branch builds always complete.
1 parent 5073edf commit ea8bab8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/rust.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [main]
88
env:
99
RUST_BACKTRACE: 1
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
13+
cancel-in-progress: true
14+
1015
jobs:
1116
test:
1217
name: Test ${{ matrix.target }}

0 commit comments

Comments
 (0)