github: Only run CI for latest commit in a branch, cancel old runs

This commit is contained in:
Tobias Brunner
2025-08-22 12:21:50 +02:00
parent 7b90dc93c0
commit b36da850b5
7 changed files with 28 additions and 0 deletions
+4
View 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