]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Only run CI for latest commit in a branch, cancel old runs
authorTobias Brunner <tobias@strongswan.org>
Fri, 22 Aug 2025 10:21:50 +0000 (12:21 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 22 Aug 2025 10:21:50 +0000 (12:21 +0200)
.github/workflows/android.yml
.github/workflows/codeql.yml
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/sonarcloud.yml
.github/workflows/tkm.yml
.github/workflows/windows.yml

index a65be4905953f5d7c55cd3def67742929190c90c..9ec33ee8ea0ed85b8cf6f255a4d6ed7a9dbf89da 100644 (file)
@@ -2,6 +2,10 @@ name: Android
 
 on: [push, pull_request]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   CCACHE_BASEDIR: ${{ github.workspace }}
   CCACHE_COMPRESS: true
index ab7185de4954f3c469e7201b44ed6873423e0e22..79f198b7970413b8a76e26bc67f72759b1859fdc 100644 (file)
@@ -2,6 +2,10 @@ name: "CodeQL"
 
 on: [push, pull_request]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   CCACHE_BASEDIR: ${{ github.workspace }}
   CCACHE_COMPRESS: true
index b423e462b8bbfa085889227f7867350a42f8feb7..4e900f83fb6f7106baf367bb56ca56a4b318806f 100644 (file)
@@ -2,6 +2,10 @@ name: Linux
 
 on: [push, pull_request]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   # this test case does not actually test anything but tries to access system
   # directories that might be inaccessible on build hosts
index 3edd2b983408fc5b80bb4d7ca0b109f10c8f2aff..161976b1d210f88062dd5cb7bb5820fe34f58316 100644 (file)
@@ -2,6 +2,10 @@ name: macOS
 
 on: [push, pull_request]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   TESTS_REDUCED_KEYLENGTHS: yes
   CCACHE_BASEDIR: ${{ github.workspace }}
index 18a3139b902c8469168b7febfee9402c665ac48b..e2fbf8476dac0d7df4cdab372bb63634ce467451 100644 (file)
@@ -2,6 +2,10 @@ name: SonarCloud
 
 on: [push]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   CCACHE_BASEDIR: ${{ github.workspace }}
   CCACHE_COMPRESS: true
index 1affd8f644427a302b51fb7d68bd51a7b69de2e5..8d612b858569d5861392126f965b1e0a7c686385 100644 (file)
@@ -2,6 +2,10 @@ name: TKM
 
 on: [push, pull_request]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   CCACHE_DIR: ${{ github.workspace }}/.ccache
   CCACHE_CONTAINER: /root/.ccache
index ca84bc8abf110a39ae8dae09ce25e4f641c88c4d..cba0512acaba12514217a669fdd9412cc114823e 100644 (file)
@@ -2,6 +2,10 @@ name: Windows
 
 on: [push, pull_request]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 env:
   TESTS_REDUCED_KEYLENGTHS: yes
   CCACHE_BASEDIR: ${{ github.workspace }}