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: strategy:
fail-fast: false fail-fast: false
# Don't run scheduled builds on forks: # 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 uses: ./.github/workflows/build_check_cache.yml
with: with:
os: ubuntu-24.04 os: ubuntu-24.04
@@ -67,7 +67,7 @@ jobs:
- os: macos-14 - os: macos-14
arch: arm64 arch: arm64
# Don't run scheduled builds on forks: # 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 uses: ./.github/workflows/build_check_cache.yml
with: with:
os: ${{ matrix.os }} os: ${{ matrix.os }}
@@ -79,7 +79,7 @@ jobs:
name: Unit Tests name: Unit Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: build_linux needs: build_linux
if: ${{ success() }} if: ${{ !cancelled() && success() }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
@@ -131,7 +131,7 @@ jobs:
- arch: aarch64 - arch: aarch64
runner: ubuntu-24.04-arm runner: ubuntu-24.04-arm
# Don't run scheduled builds on forks: # 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 }} runs-on: ${{ matrix.variant.runner }}
env: env:
date: date:

View File

@@ -26,7 +26,7 @@ on:
jobs: jobs:
build_deps: build_deps:
name: 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 }} runs-on: ${{ inputs.os }}
env: env:
date: date: