Skip to content

Commit 59b3ee7

Browse files
authored
Speed up CI by canceling in-progress runs (#566)
Prevents redundant CI runs when new commits are pushed to the same branch, while ensuring main branch builds always complete. This is how it's already done elsewhere in DuckDB land, e.g. [here](https://github.com/duckdb/extension-template/blob/f85fea84e263ec539bf44da45fb6b2a864fddb64/.github/workflows/ExtensionTemplate.yml).
2 parents d70ca58 + ea8bab8 commit 59b3ee7

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)