Skip to content

Commit

Permalink
Merge pull request #3235 from rouault/ci_cancel
Browse files Browse the repository at this point in the history
CI: Cancel PR and branch workflows on new push
  • Loading branch information
rouault committed Jun 22, 2022
2 parents 8d7e27c + 723c8ae commit 6608bd8
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/clang_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Clang Linux

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

clang_linux:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/clang_static_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Clang Static Analyzer

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

clang_static_analyzer:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Code Checks

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

cppcheck_2004:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: '*'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Conda ${{ matrix.platform }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/doc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Docs

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
plots:
name: Plots
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Docker

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

# adapted from https://raw.githubusercontent.com/stefanprodan/podinfo/master/.github/workflows/release.yml
#
jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linux_gcc_32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Linux GCC 32bit

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

linux_gcc_32bit:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linux_gcc_5_4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Linux GCC 5.4

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

linux_gcc_5_4:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: MacOS build

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

macos_build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mingw_w64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: mingw_w64 build

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

mingw_w64_build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Windows build

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:

MSVC:
Expand Down

0 comments on commit 6608bd8

Please sign in to comment.