Skip to content

Support GitHub Action-like matrix #1283

@kp-thomas-yau

Description

@kp-thomas-yau

Feature Description

Support GitHub Action-like matrix for a task, we can declare like an array and cargo-make can re-run the same commands/script with different matrix value. Auto-fail when one of the commands/scripts has failed

Describe The Solution You'd Like

[tasks.mock]
matrix = { target = ["a", "b", "c"]}
script = '''
echo ${matrix.target}
'''

Code Sample

/// paste code here

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions