mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 08:58:36 +00:00
all-globs-to-any-file needs one file to match every glob, so three crate globs side by side could never all match; top-level match objects are AND-ed, so the play-script rule sits with the crate rule under one `any`. *_tests.rs files are excluded too. Checked with Node's path.matchesGlob on six sample paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
# Area labels for pull requests, set from the paths a pull request changes (.github/workflows/labeler.yml runs
|
|
# actions/labeler on this file). A pull request can carry several labels; the labels already on it are never removed.
|
|
# The labels have to exist in the repository first: the action does not create them with a colour or description.
|
|
|
|
'area: d3d12':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['d3d12/**']
|
|
|
|
# The RDNA2 -> SPIR-V translator: the Python tools, their regression suite and the Rust shader crate.
|
|
'area: shader translator':
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- 'd3d12/crates/leonida-shader/**'
|
|
- 'tools/rdna2*.py'
|
|
- 'tools/spirv_*.py'
|
|
- 'tools/shader_*.py'
|
|
- 'tools/shader_carve_native/**'
|
|
- 'tools/fssm_*.py'
|
|
- 'tools/isa_coverage.py'
|
|
- 'tools/pe_shader_containers.py'
|
|
- 'tests/semantic/**'
|
|
|
|
'area: launcher':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['launcher/**']
|
|
|
|
'area: runtime (legacy)':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['runtime/**']
|
|
|
|
'area: tools':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['tools/**', 'scripts/**']
|
|
|
|
'area: viewer':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['viewer/**']
|
|
|
|
'area: docs':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['docs/**', '**/*.md']
|
|
|
|
'area: ci':
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['.github/**']
|
|
|
|
# A change the in-game gate (docs/game_gate.md) has to cover: the code a frame runs through, or the play scripts'
|
|
# defaults. all-globs-to-any-file needs ONE file to match every glob, so the three crates share one brace glob and
|
|
# the exclusions keep a change that only touches unit tests (tests.rs, *_tests.rs, tests/) from asking for a 300 s
|
|
# run. Top-level match objects are AND-ed, so the two rules sit under one `any`.
|
|
'needs in-game run':
|
|
- any:
|
|
- changed-files:
|
|
- all-globs-to-any-file:
|
|
- 'd3d12/crates/{leonida-gpu,leonida-shader,leonida-hle}/src/**'
|
|
- '!**/tests.rs'
|
|
- '!**/*_tests.rs'
|
|
- '!**/tests/**'
|
|
- changed-files:
|
|
- any-glob-to-any-file: ['d3d12/scripts/play*.ps1']
|