From 26274114a3f6cc3fd2bb703927b3f29ec8e9c3e6 Mon Sep 17 00:00:00 2001 From: MaxsTechReview Date: Wed, 4 Nov 2026 00:38:17 -0500 Subject: [PATCH] ci: avoid redundant gamescope builds (#2070) Co-authored-by: maxjivi05 <6025299+maxjivi05@users.noreply.github.com> --- .github/workflows/build-gamescope.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-gamescope.yml b/.github/workflows/build-gamescope.yml index 0a91fea431..afba4a9480 100644 --- a/.github/workflows/build-gamescope.yml +++ b/.github/workflows/build-gamescope.yml @@ -2,8 +2,11 @@ name: Build gamescope (patched) on: push: + branches: [main] paths: - - 'tools/gamescope/**' + - 'tools/gamescope/build-in-arch.sh' + - 'tools/gamescope/patches/**' + - 'tools/gamescope/runtime-sonames.txt' - '.github/workflows/build-gamescope.yml' workflow_dispatch: inputs: @@ -15,6 +18,10 @@ on: permissions: contents: write +concurrency: + group: gamescope-${{ github.event_name }}-${{ github.ref }}-${{ inputs.tag || 'artifact' }} + cancel-in-progress: ${{ github.event_name == 'push' }} + jobs: build: runs-on: ubuntu-24.04-arm