From c106350143f01f31c740c7aceb3176b240bc42c4 Mon Sep 17 00:00:00 2001 From: coryrc Date: Sat, 1 Nov 2025 05:24:35 -0700 Subject: [PATCH] Cancel root jobs (#11192) Maybe this will help cancel happen faster. --- .github/workflows/build_all.yml | 8 ++++---- .github/workflows/build_deps.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 1b5ff56d59..b862b385ef 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -51,7 +51,7 @@ jobs: strategy: fail-fast: false # Don't run scheduled builds on forks: - if: github.event_name != 'schedule' || github.repository == 'SoftFever/OrcaSlicer' + if: !cancelled() && (github.event_name != 'schedule' || github.repository == 'SoftFever/OrcaSlicer') uses: ./.github/workflows/build_check_cache.yml with: os: ubuntu-24.04 @@ -67,7 +67,7 @@ jobs: - os: macos-14 arch: arm64 # Don't run scheduled builds on forks: - if: github.event_name != 'schedule' || github.repository == 'SoftFever/OrcaSlicer' + if: !cancelled() && (github.event_name != 'schedule' || github.repository == 'SoftFever/OrcaSlicer') uses: ./.github/workflows/build_check_cache.yml with: os: ${{ matrix.os }} @@ -79,7 +79,7 @@ jobs: name: Unit Tests runs-on: ubuntu-24.04 needs: build_linux - if: ${{ success() }} + if: ${{ !cancelled() && success() }} steps: - name: Checkout uses: actions/checkout@v5 @@ -131,7 +131,7 @@ jobs: - arch: aarch64 runner: ubuntu-24.04-arm # Don't run scheduled builds on forks: - if: github.event_name != 'schedule' || github.repository == 'SoftFever/OrcaSlicer' + if: !cancelled() && (github.event_name != 'schedule' || github.repository == 'SoftFever/OrcaSlicer') runs-on: ${{ matrix.variant.runner }} env: date: diff --git a/.github/workflows/build_deps.yml b/.github/workflows/build_deps.yml index fbd3ef723e..4e83d50115 100644 --- a/.github/workflows/build_deps.yml +++ b/.github/workflows/build_deps.yml @@ -26,7 +26,7 @@ on: jobs: build_deps: name: Build Deps - if: inputs.build-deps-only || inputs.force-build || inputs.valid-cache != true + if: !cancelled() && (inputs.build-deps-only || inputs.force-build || inputs.valid-cache != true) runs-on: ${{ inputs.os }} env: date: