From 571b473cc17906b5400adae88313d6b58e4fb0c0 Mon Sep 17 00:00:00 2001 From: Dalton-V Date: Thu, 10 Sep 2026 21:13:25 -0500 Subject: [PATCH] Use concurrency in CI --- .github/workflows/cpp-ci-serial-programs-mac-intel.yml | 8 ++++++++ .github/workflows/cpp-ci-serial-programs-mac.yml | 8 ++++++++ .github/workflows/cpp-ci-serial-programs-ubuntu-clang.yml | 8 ++++++++ .../workflows/cpp-ci-serial-programs-ubuntu-default.yml | 8 ++++++++ .../workflows/cpp-ci-serial-programs-windows-clang.yml | 8 ++++++++ .../workflows/cpp-ci-serial-programs-windows-default.yml | 8 ++++++++ 6 files changed, 48 insertions(+) diff --git a/.github/workflows/cpp-ci-serial-programs-mac-intel.yml b/.github/workflows/cpp-ci-serial-programs-mac-intel.yml index eba6cf90cd..19eff37f08 100644 --- a/.github/workflows/cpp-ci-serial-programs-mac-intel.yml +++ b/.github/workflows/cpp-ci-serial-programs-mac-intel.yml @@ -6,6 +6,14 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.stack.number || + github.event.pull_request.number || + github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false diff --git a/.github/workflows/cpp-ci-serial-programs-mac.yml b/.github/workflows/cpp-ci-serial-programs-mac.yml index e97805b76e..5201d80e72 100644 --- a/.github/workflows/cpp-ci-serial-programs-mac.yml +++ b/.github/workflows/cpp-ci-serial-programs-mac.yml @@ -6,6 +6,14 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.stack.number || + github.event.pull_request.number || + github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false diff --git a/.github/workflows/cpp-ci-serial-programs-ubuntu-clang.yml b/.github/workflows/cpp-ci-serial-programs-ubuntu-clang.yml index b05cd243cb..647b30ffb1 100644 --- a/.github/workflows/cpp-ci-serial-programs-ubuntu-clang.yml +++ b/.github/workflows/cpp-ci-serial-programs-ubuntu-clang.yml @@ -6,6 +6,14 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.stack.number || + github.event.pull_request.number || + github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false diff --git a/.github/workflows/cpp-ci-serial-programs-ubuntu-default.yml b/.github/workflows/cpp-ci-serial-programs-ubuntu-default.yml index d9135a79c6..67f893da52 100644 --- a/.github/workflows/cpp-ci-serial-programs-ubuntu-default.yml +++ b/.github/workflows/cpp-ci-serial-programs-ubuntu-default.yml @@ -6,6 +6,14 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.stack.number || + github.event.pull_request.number || + github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false diff --git a/.github/workflows/cpp-ci-serial-programs-windows-clang.yml b/.github/workflows/cpp-ci-serial-programs-windows-clang.yml index beffaae695..0fe396f0d3 100644 --- a/.github/workflows/cpp-ci-serial-programs-windows-clang.yml +++ b/.github/workflows/cpp-ci-serial-programs-windows-clang.yml @@ -6,6 +6,14 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.stack.number || + github.event.pull_request.number || + github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false diff --git a/.github/workflows/cpp-ci-serial-programs-windows-default.yml b/.github/workflows/cpp-ci-serial-programs-windows-default.yml index 6ab2489835..378f7954f1 100644 --- a/.github/workflows/cpp-ci-serial-programs-windows-default.yml +++ b/.github/workflows/cpp-ci-serial-programs-windows-default.yml @@ -6,6 +6,14 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.stack.number || + github.event.pull_request.number || + github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false