Skip to content

Commit 64547a8

Browse files
authored
Only run CI on latest commit of PR branches (#1033)
1 parent 8604f8c commit 64547a8

File tree

9 files changed

+45
-0
lines changed

9 files changed

+45
-0
lines changed

.github/workflows/dsa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ env:
1515
CARGO_INCREMENTAL: 0
1616
RUSTFLAGS: "-Dwarnings"
1717

18+
# Cancels CI jobs when new commits are pushed to a PR branch
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
build:
2025
runs-on: ubuntu-latest

.github/workflows/ecdsa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
CARGO_INCREMENTAL: 0
1818
RUSTFLAGS: "-Dwarnings"
1919

20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
no_std:
2227
runs-on: ubuntu-latest

.github/workflows/ed25519.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ env:
1515
CARGO_INCREMENTAL: 0
1616
RUSTFLAGS: "-Dwarnings"
1717

18+
# Cancels CI jobs when new commits are pushed to a PR branch
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
build:
2025
runs-on: ubuntu-latest

.github/workflows/ed448.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ env:
1515
CARGO_INCREMENTAL: 0
1616
RUSTFLAGS: "-Dwarnings"
1717

18+
# Cancels CI jobs when new commits are pushed to a PR branch
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
build:
2025
runs-on: ubuntu-latest

.github/workflows/lms.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ env:
1616
CARGO_INCREMENTAL: 0
1717
RUSTFLAGS: "-Dwarnings"
1818

19+
# Cancels CI jobs when new commits are pushed to a PR branch
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
cancel-in-progress: true
23+
1924
jobs:
2025
test:
2126
runs-on: ubuntu-latest

.github/workflows/ml-dsa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717
RUSTFLAGS: "-Dwarnings"
1818
RUST_MIN_STACK: 6291456
1919

20+
# Cancels CI jobs when new commits are pushed to a PR branch
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
test:
2227
runs-on: ubuntu-latest

.github/workflows/rfc6979.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ env:
1515
CARGO_INCREMENTAL: 0
1616
RUSTFLAGS: "-Dwarnings"
1717

18+
# Cancels CI jobs when new commits are pushed to a PR branch
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
build:
2025
runs-on: ubuntu-latest

.github/workflows/slh-dsa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
CARGO_TERM_COLOR: always
1919
NEXTEST_NO_TESTS: warn
2020

21+
# Cancels CI jobs when new commits are pushed to a PR branch
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
24+
cancel-in-progress: true
25+
2126
jobs:
2227
no_std:
2328
runs-on: ubuntu-latest

.github/workflows/workspace.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ env:
1212
CARGO_INCREMENTAL: 0
1313
RUSTFLAGS: "-Dwarnings"
1414

15+
# Cancels CI jobs when new commits are pushed to a PR branch
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1520
jobs:
1621
rustfmt:
1722
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)