Cancel previous CI run on new pull request push (#311)

Thanks for contributing to FOSS4G!
This commit is contained in:
Oliver Wipfli
2022-06-14 04:26:51 +02:00
committed by GitHub
parent 9b009cf9d3
commit 1aeabf1fc6
7 changed files with 21 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: platform/android

View File

@@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: platform/android

View File

@@ -24,6 +24,9 @@ on:
jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1

View File

@@ -26,6 +26,9 @@ on:
jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1

View File

@@ -30,6 +30,9 @@ jobs:
- ubuntu-20.04
- ubuntu-18.04
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILDTYPE: ${{github.ref == 'refs/heads/main' && 'Release' || 'Debug'}}

View File

@@ -28,6 +28,9 @@ on:
jobs:
build-core:
runs-on: windows-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
strategy:
matrix:
include:

View File

@@ -54,6 +54,9 @@ jobs:
qt: 6.2.2
qt_target: desktop
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILD_TYPE: Debug
BUILD_MODE: ${{ matrix.static }}