Files
OrcaSlicer/.github/workflows/cancel_closed_pr_builds.yml
T
HanifKoh f8a2e3d896 Build Windows x64 With cl.exe on the build-windows-msvc Label (#17205)
* Build Windows x64 With cl.exe on the build-windows-msvc Label

CI compiles Windows with clang-cl, so an error only cl.exe reports, such as a
class template's virtual members instantiated with the class where clang
defers, reaches main unseen. The build-windows-msvc label gives a pull
request a cl build of x64 that only compiles: build_orca.yml's Windows
packaging, uploads and deploys belong to the clang build, the one that
ships, and the compiler cache is left out, as the Visual Studio generator
takes no launcher. No push build saves a cl deps cache, so a pull request's
first such build builds the deps too.

* Upload the cl.exe Build's Portable Build, Installer and PDB

Under _msvc names, through the arch suffix build_orca.yml already puts in the
artifact names, so a tester can tell them from the clang build's. The clang
build stays the one tested, checked for throw info, packaged for the Store
and deployed.

* Leave the MSVC Build Out of build-all

build-all stands for the three builds every pull request once got. The MSVC
build is another compiler's, never one a pull request got, and the first one
builds the deps too, so a pull request asking for an Intel Mac DMG with
build-all should not wait on it. pick takes a fourth argument that says
whether build-all covers the build; the three existing lines leave it at the
default.
2026-11-12 14:29:26 +08:00

37 lines
1.2 KiB
YAML

name: Cancel builds of closed pull requests
on:
# pull_request_target needs no approval for first-time contributors and must never
# check out pull request code.
pull_request_target:
types:
- closed
permissions: {}
jobs:
cancel:
# Matches the concurrency group in build_all.yml, so joining it cancels the pull
# request's unfinished Build all run.
concurrency:
group: build-all-pull_request-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- run: echo "Joined concurrency group build-all-pull_request-${{ github.event.pull_request.number }}."
cancel_optional:
# The same for the builds of build_optional.yml, which keep a group each.
strategy:
matrix:
build:
- flatpak
- macos-x86_64
- windows-arm64
- windows-msvc
concurrency:
group: build-optional-${{ matrix.build }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- run: echo "Joined concurrency group build-optional-${{ matrix.build }}-${{ github.event.pull_request.number }}."