mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
CI: Disable the Windows CI job by using a boolean exclusion
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
CI / Windows, x86_64, Windows_Sanitizer_CI, ClangCL (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
CI / Windows, x86_64, Windows_Sanitizer_CI, ClangCL (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Each matrix item now defines whether it is enabled, and if not, the job conditionally disables itself. Apparantly we cannot use expressions in `matrix.exclude`, but it should work in the items' definitions. This has the added benefit that this makes the job show up as "skipped", which could serve as a hint that it could be run on a PR.
This commit is contained in:
parent
b9d630edbc
commit
c6d848b100
Notes:
github-actions[bot]
2025-06-22 08:36:15 +00:00
Author: https://github.com/gmta
Commit: c6d848b100
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5165
2 changed files with 14 additions and 4 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
@ -16,6 +16,9 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
# CI matrix - runs the job in lagom-template.yml with different configurations.
|
# CI matrix - runs the job in lagom-template.yml with different configurations.
|
||||||
Lagom:
|
Lagom:
|
||||||
|
# Run the items in this matrix only if:
|
||||||
|
# 1. The repository is the Ladybird repository; and
|
||||||
|
# 2. If the event was a push event, or a PR event other than 'labeled', or the label name is 'windows'
|
||||||
if: |
|
if: |
|
||||||
github.repository == 'LadybirdBrowser/ladybird'
|
github.repository == 'LadybirdBrowser/ladybird'
|
||||||
&& (github.event_name != 'pull_request' || github.event.action != 'labeled' || github.event.label.name == 'windows')
|
&& (github.event_name != 'pull_request' || github.event.action != 'labeled' || github.event.label.name == 'windows')
|
||||||
|
@ -30,6 +33,7 @@ jobs:
|
||||||
toolchain: ['GNU']
|
toolchain: ['GNU']
|
||||||
clang_plugins: [false]
|
clang_plugins: [false]
|
||||||
runner_labels: ['["blacksmith-16vcpu-ubuntu-2404"]']
|
runner_labels: ['["blacksmith-16vcpu-ubuntu-2404"]']
|
||||||
|
enabled: [true]
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- os_name: 'Linux'
|
- os_name: 'Linux'
|
||||||
|
@ -38,6 +42,7 @@ jobs:
|
||||||
toolchain: 'Clang'
|
toolchain: 'Clang'
|
||||||
clang_plugins: true
|
clang_plugins: true
|
||||||
runner_labels: '["blacksmith-16vcpu-ubuntu-2404"]'
|
runner_labels: '["blacksmith-16vcpu-ubuntu-2404"]'
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- os_name: 'macOS'
|
- os_name: 'macOS'
|
||||||
arch: 'arm64'
|
arch: 'arm64'
|
||||||
|
@ -45,6 +50,7 @@ jobs:
|
||||||
toolchain: 'Clang'
|
toolchain: 'Clang'
|
||||||
clang_plugins: false
|
clang_plugins: false
|
||||||
runner_labels: '["macos-15", "self-hosted"]'
|
runner_labels: '["macos-15", "self-hosted"]'
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- os_name: 'Linux'
|
- os_name: 'Linux'
|
||||||
arch: 'x86_64'
|
arch: 'x86_64'
|
||||||
|
@ -52,6 +58,7 @@ jobs:
|
||||||
toolchain: 'Clang'
|
toolchain: 'Clang'
|
||||||
clang_plugins: false
|
clang_plugins: false
|
||||||
runner_labels: '["blacksmith-16vcpu-ubuntu-2404"]'
|
runner_labels: '["blacksmith-16vcpu-ubuntu-2404"]'
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- os_name: 'Windows'
|
- os_name: 'Windows'
|
||||||
arch: 'x86_64'
|
arch: 'x86_64'
|
||||||
|
@ -59,10 +66,7 @@ jobs:
|
||||||
toolchain: 'ClangCL'
|
toolchain: 'ClangCL'
|
||||||
clang_plugins: false
|
clang_plugins: false
|
||||||
runner_labels: '["windows-2025"]'
|
runner_labels: '["windows-2025"]'
|
||||||
|
enabled: ${{ contains(github.event.pull_request.labels.*.name, 'windows') }}
|
||||||
exclude:
|
|
||||||
# Exclude the Windows build from the matrix if the PR is not labeled with 'windows'.
|
|
||||||
- os_name: ${{ !contains(github.event.pull_request.labels.*.name, 'windows') && 'Windows' }}
|
|
||||||
|
|
||||||
uses: ./.github/workflows/lagom-template.yml
|
uses: ./.github/workflows/lagom-template.yml
|
||||||
with:
|
with:
|
||||||
|
@ -72,3 +76,4 @@ jobs:
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
build_preset: ${{ matrix.build_preset }}
|
build_preset: ${{ matrix.build_preset }}
|
||||||
clang_plugins: ${{ matrix.clang_plugins }}
|
clang_plugins: ${{ matrix.clang_plugins }}
|
||||||
|
enabled: ${{ matrix.enabled }}
|
||||||
|
|
5
.github/workflows/lagom-template.yml
vendored
5
.github/workflows/lagom-template.yml
vendored
|
@ -22,6 +22,10 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
enabled:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# runner.workspace = /home/runner/work/ladybird
|
# runner.workspace = /home/runner/work/ladybird
|
||||||
|
@ -38,6 +42,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CI:
|
CI:
|
||||||
|
if: ${{ inputs.enabled }}
|
||||||
runs-on: ${{ fromJSON(inputs.runner_labels) }}
|
runs-on: ${{ fromJSON(inputs.runner_labels) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue