From f66d4ce846285e67fc3dcb82bc9a8ce73d3ead0f Mon Sep 17 00:00:00 2001 From: BREW <81044362+b-re-w@users.noreply.github.com> Date: Sat, 3 Oct 2026 20:40:51 +0900 Subject: [PATCH] CI: Cancel superseded runs per workflow and ref (#129) --- .github/workflows/android-native.yml | 5 +++++ .github/workflows/desktop.yml | 5 +++++ .github/workflows/ios.yml | 5 +++++ .github/workflows/typedpython.yml | 5 +++++ .github/workflows/wasm.yml | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/.github/workflows/android-native.yml b/.github/workflows/android-native.yml index d01fbb773..6ff4ff985 100644 --- a/.github/workflows/android-native.yml +++ b/.github/workflows/android-native.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ "develop", "main" ] +concurrency: + # A newer push to the same ref supersedes this run; frees the shared macOS runners. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: compile: name: Compile Android Native diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index f6a28ab58..67c9c2c7f 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ "develop", "main" ] +concurrency: + # A newer push to the same ref supersedes this run; frees the shared macOS runners. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Desktop Tests diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 74a188a31..0bd46c48c 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ "develop", "main" ] +concurrency: + # A newer push to the same ref supersedes this run; frees the shared macOS runners. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: compile: name: Compile iOS Simulator Arm64 diff --git a/.github/workflows/typedpython.yml b/.github/workflows/typedpython.yml index 444ebcd43..c03f0ea4d 100644 --- a/.github/workflows/typedpython.yml +++ b/.github/workflows/typedpython.yml @@ -10,6 +10,11 @@ on: branches: [ "develop", "main" ] paths: [ "python-multiplatform-ksp/**", "ksp-fixtures/app/**", ".github/workflows/typedpython.yml" ] +concurrency: + # A newer push to the same ref supersedes this run; frees the shared macOS runners. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: TypedPython tests (${{ matrix.os }}) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index c7ece1461..a800e5dcd 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -18,6 +18,11 @@ on: pull_request: branches: [ "develop", "main" ] +concurrency: + # A newer push to the same ref supersedes this run; frees the shared macOS runners. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: compile: name: WasmJS compile (no interpreter)