Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support wildcards for platform names in the target selector. #6236

@ruben-arts

Description

@ruben-arts

Problem description

Follow up for #6178

Having these platforms:

[workspace]
platforms = [
    { name = "cuda-win-64", platform = "win-64", cuda = "12"},
    "win-64",
    { name = "cuda-linux-64", platform = "linux-64", cuda = "12" },
    "linux-64",
]

It requires these definitions to be duplicated now:

[target.cuda-win-64.tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"
[target.cuda-linux-64.tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"

I feel we should make it possible to use a * wildcard:

[target."cuda-*".tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"

Metadata

Metadata

Assignees

Labels

configurationConfiguration of workspace or global behaviorenhancementNew features

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions