Cancel root jobs (#11192)

Maybe this will help cancel happen faster.
This commit is contained in:
coryrc
2025-11-01 05:24:35 -07:00
committed by GitHub
parent 398c72dd68
commit c106350143
2 changed files with 5 additions and 5 deletions

View File

@@ -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:

View File

@@ -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: