summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2023-05-26 16:25:28 +0200
committerPetr Štetiar <ynezz@true.cz>2023-05-26 19:42:30 +0200
commit86107a647cb0a7f37c04dd7ab0cd79f547fafaf7 (patch)
tree77231dcf2a7d5e34453aed2cf279eca2463d0656 /.github
parent77c961e20eda30c93fcee27e9137d5983c4c93d6 (diff)
ci: cancel concurrent builds
To save some build resources, lets cancel ongoing builds after force pushing new sources into the pull request branch. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/openwrt-ci-master.yml4
-rw-r--r--.github/workflows/openwrt-ci-pull-request.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/openwrt-ci-master.yml b/.github/workflows/openwrt-ci-master.yml
index 432c80f..df38774 100644
--- a/.github/workflows/openwrt-ci-master.yml
+++ b/.github/workflows/openwrt-ci-master.yml
@@ -5,6 +5,10 @@ on:
branches:
- master
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
env:
CI_ENABLE_UNIT_TESTING: 1
CI_TARGET_BUILD_DEPENDS: libnl-tiny ubus uci
diff --git a/.github/workflows/openwrt-ci-pull-request.yml b/.github/workflows/openwrt-ci-pull-request.yml
index 53e923f..87cb82a 100644
--- a/.github/workflows/openwrt-ci-pull-request.yml
+++ b/.github/workflows/openwrt-ci-pull-request.yml
@@ -10,6 +10,10 @@ env:
CI_ENABLE_UNIT_TESTING: 1
CI_TARGET_BUILD_DEPENDS: libnl-tiny ubus uci
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
native_testing:
name: Various native checks