From: Tobias Brunner Date: Fri, 22 Aug 2025 10:21:50 +0000 (+0200) Subject: github: Only run CI for latest commit in a branch, cancel old runs X-Git-Tag: 6.0.3dr1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b36da850b56e0b93bab9b76fb91d20adfc51ad83;p=thirdparty%2Fstrongswan.git github: Only run CI for latest commit in a branch, cancel old runs --- diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a65be49059..9ec33ee8ea 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ab7185de49..79f198b797 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b423e462b8..4e900f83fb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 3edd2b9834..161976b1d2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 }} diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 18a3139b90..e2fbf8476d 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -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 diff --git a/.github/workflows/tkm.yml b/.github/workflows/tkm.yml index 1affd8f644..8d612b8585 100644 --- a/.github/workflows/tkm.yml +++ b/.github/workflows/tkm.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ca84bc8abf..cba0512aca 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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 }}