Cancel running CI jobs when new changes are pushed to a PR
The `group` expression ensures that the cancel-in-progress behavior is to only cancel if a new commit is pushed to the PR for which the job is running, not other PRs. This is a fairly standard snippet, used also in CI jobs for NumPy and other projects.
This commit is contained in:
4
.github/workflows/arm64_graviton.yml
vendored
4
.github/workflows/arm64_graviton.yml
vendored
@@ -2,6 +2,10 @@ name: arm64 graviton cirun
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
|
||||
4
.github/workflows/c910v.yml
vendored
4
.github/workflows/c910v.yml
vendored
@@ -2,6 +2,10 @@ name: c910v qemu test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
|
||||
4
.github/workflows/dynamic_arch.yml
vendored
4
.github/workflows/dynamic_arch.yml
vendored
@@ -2,6 +2,10 @@ name: continuous build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
|
||||
4
.github/workflows/loongarch64.yml
vendored
4
.github/workflows/loongarch64.yml
vendored
@@ -2,6 +2,10 @@ name: loongarch64 qemu test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
TEST:
|
||||
if: "github.repository == 'OpenMathLib/OpenBLAS'"
|
||||
|
||||
4
.github/workflows/mips64.yml
vendored
4
.github/workflows/mips64.yml
vendored
@@ -2,6 +2,10 @@ name: mips64 qemu test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
|
||||
4
.github/workflows/nightly-Homebrew-build.yml
vendored
4
.github/workflows/nightly-Homebrew-build.yml
vendored
@@ -18,6 +18,10 @@ on:
|
||||
|
||||
name: Nightly-Homebrew-Build
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user