diff --git a/.github/workflows/xma2-decoder.yml b/.github/workflows/xma2-decoder.yml index 60208ae425..543cea4a42 100644 --- a/.github/workflows/xma2-decoder.yml +++ b/.github/workflows/xma2-decoder.yml @@ -16,6 +16,12 @@ on: permissions: contents: read +concurrency: + # Pull requests coalesce and cancel superseded pending runs per number; a push gets its own group + # (run_id is unique per run), so a merge burst cannot replace queued main runs before they start. + group: xma2-decoder-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: windows-ffi: runs-on: windows-latest