Browse Source

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.
tags/v0.3.25^2
Ralf Gommers 2 years ago
parent
commit
2418a20f1f
6 changed files with 24 additions and 0 deletions
  1. +4
    -0
      .github/workflows/arm64_graviton.yml
  2. +4
    -0
      .github/workflows/c910v.yml
  3. +4
    -0
      .github/workflows/dynamic_arch.yml
  4. +4
    -0
      .github/workflows/loongarch64.yml
  5. +4
    -0
      .github/workflows/mips64.yml
  6. +4
    -0
      .github/workflows/nightly-Homebrew-build.yml

+ 4
- 0
.github/workflows/arm64_graviton.yml View File

@@ -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
- 0
.github/workflows/c910v.yml View File

@@ -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
- 0
.github/workflows/dynamic_arch.yml View File

@@ -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
- 0
.github/workflows/loongarch64.yml View File

@@ -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
- 0
.github/workflows/mips64.yml View File

@@ -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
- 0
.github/workflows/nightly-Homebrew-build.yml View File

@@ -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)



Loading…
Cancel
Save