Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

CI: pushes to main no longer cancel the FreeBSD / Windows ARM64 run in progress

Brandon Thomase3873ae92f2a
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
index 9dc8fe0b9..3630cdcab 100644
--- a/.github/workflows/freebsd.yml
+++ b/.github/workflows/freebsd.yml
@@ -15,7 +15,9 @@ on:
concurrency:
group: freebsd-${{ github.ref }}
- cancel-in-progress: true
+ # A push to main doesn't cancel the run in progress (the newest waiting run replaces older ones),
+ # so main gets complete runs however often it moves; PR pushes do cancel.
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
diff --git a/.github/workflows/windows-arm64.yml b/.github/workflows/windows-arm64.yml
index 8f1aac5cb..125cff3cd 100644
--- a/.github/workflows/windows-arm64.yml
+++ b/.github/workflows/windows-arm64.yml
@@ -21,7 +21,9 @@ on:
concurrency:
group: windows-arm64-${{ github.ref }}
- cancel-in-progress: true
+ # A push to main doesn't cancel the run in progress (the newest waiting run replaces older ones),
+ # so main gets complete runs however often it moves; PR pushes do cancel.
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read