Skip to content

Commit 8fd8af2

Browse files
authored
Only run CI on latest commit of PR branches (#1362)
1 parent c3ea033 commit 8fd8af2

File tree

15 files changed

+75
-0
lines changed

15 files changed

+75
-0
lines changed

.github/workflows/bign256.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
RUSTFLAGS: "-Dwarnings"
1919
RUSTDOCFLAGS: "-Dwarnings"
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
build:
2328
runs-on: ubuntu-latest

.github/workflows/bp256.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
RUSTFLAGS: "-Dwarnings"
1919
RUSTDOCFLAGS: "-Dwarnings"
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
build:
2328
runs-on: ubuntu-latest

.github/workflows/bp384.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
RUSTFLAGS: "-Dwarnings"
1919
RUSTDOCFLAGS: "-Dwarnings"
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
build:
2328
runs-on: ubuntu-latest

.github/workflows/ed448-goldilocks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ env:
1919
RUSTFLAGS: "-Dwarnings"
2020
RUSTDOCFLAGS: "-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/hash2curve.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
RUSTFLAGS: "-Dwarnings"
1919
RUSTDOCFLAGS: "-Dwarnings"
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
build:
2328
runs-on: ubuntu-latest

.github/workflows/k256.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ env:
1919
RUSTFLAGS: "-Dwarnings"
2020
RUSTDOCFLAGS: "-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/p192.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
RUSTFLAGS: "-Dwarnings"
1919
RUSTDOCFLAGS: "-Dwarnings"
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
build:
2328
runs-on: ubuntu-latest

.github/workflows/p224.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ env:
1818
RUSTFLAGS: "-Dwarnings"
1919
RUSTDOCFLAGS: "-Dwarnings"
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
build:
2328
runs-on: ubuntu-latest

.github/workflows/p256.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ env:
1919
RUSTFLAGS: "-Dwarnings"
2020
RUSTDOCFLAGS: "-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/p384.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ env:
1919
RUSTFLAGS: "-Dwarnings"
2020
RUSTDOCFLAGS: "-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)