Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/target specific tasks #269

Merged
merged 9 commits into from
Aug 22, 2023

Conversation

ruben-arts
Copy link
Contributor

@ruben-arts ruben-arts commented Aug 19, 2023

Adding the ability to add target (platform) specific tasks. The idea is that a task is cross platform by definition but sometimes you need extra parameters on different platforms for instance:

[tasks]
build = {cmd="colcon build --build-base .pixi/build --install-base .pixi/install"}
test = {cmd="colcon test --build-base .pixi/build --install-base .pixi/install"}

[target.win-64.tasks]
build = {cmd="colcon build --merge-install --build-base .pixi/build --install-base .pixi/install"}
test = {cmd="colcon test --merge-install --build-base .pixi/build --install-base .pixi/install"}

This pr allows for that.

closes #192

src/project/mod.rs Outdated Show resolved Hide resolved
@wolfv
Copy link
Member

wolfv commented Aug 22, 2023

Looks good to me!

@ruben-arts ruben-arts marked this pull request as draft August 22, 2023 07:06
@ruben-arts ruben-arts marked this pull request as ready for review August 22, 2023 12:17
@wolfv wolfv merged commit 2905605 into prefix-dev:main Aug 22, 2023
@ruben-arts ruben-arts deleted the feature/target_specific_tasks branch February 15, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding target specific run commands
2 participants