Skip to content

Commit 8c5ddd4

Browse files
authored
Only run CI on latest commit of PR branches (#1197)
1 parent 2769e47 commit 8c5ddd4

14 files changed

Lines changed: 70 additions & 0 deletions

.github/workflows/aarch64-dit.yml

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

22+
# Cancels CI jobs when new commits are pushed to a PR branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
macos:
2429
strategy:

.github/workflows/blobby.yml

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

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

.github/workflows/block-buffer.yml

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

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

.github/workflows/block-padding.yml

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

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

.github/workflows/cmov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ env:
2020
CARGO_INCREMENTAL: 0
2121
RUSTFLAGS: "-Dwarnings"
2222

23+
# Cancels CI jobs when new commits are pushed to a PR branch
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
26+
cancel-in-progress: true
27+
2328
jobs:
2429
minimal-versions:
2530
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master

.github/workflows/cpufeatures.yml

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

22+
# Cancels CI jobs when new commits are pushed to a PR branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
minimal-versions:
2429
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master

.github/workflows/dbl.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ env:
2020
CARGO_INCREMENTAL: 0
2121
RUSTFLAGS: "-Dwarnings"
2222

23+
# Cancels CI jobs when new commits are pushed to a PR branch
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
26+
cancel-in-progress: true
27+
2328
jobs:
2429
build:
2530
runs-on: ubuntu-latest

.github/workflows/digest-io.yml

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

22+
# Cancels CI jobs when new commits are pushed to a PR branch
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
minimal-versions:
2429
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master

.github/workflows/fiat-constify.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ env:
2020
CARGO_INCREMENTAL: 0
2121
RUSTFLAGS: "-Dwarnings"
2222

23+
# Cancels CI jobs when new commits are pushed to a PR branch
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
26+
cancel-in-progress: true
27+
2328
jobs:
2429
test:
2530
runs-on: ubuntu-latest

.github/workflows/hex-literal.yml

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

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

0 commit comments

Comments
 (0)