Skip to content

Commit 37319ce

Browse files
Update tasks in pixi.toml with new commands
1 parent 84692fa commit 37319ce

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

pixi.toml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,29 @@ vinca = { git = "https://github.com/RoboStack/vinca.git", rev = "86e2ac4935d39b3
3030
#vinca = { path = "../vinca", editable = true }
3131

3232
[tasks]
33-
upload = "rattler-build upload anaconda -o robostack-staging -a $ANACONDA_API_TOKEN"
3433
generate-recipes = { cmd = "vinca -m", depends-on = ["remove-recipes"] }
34+
generate-gha-workflows = { cmd = "vinca-gha --trigger-branch dummy_build_branch_as_it_is_unused -d ./recipes", depends-on = ["generate-recipes"] }
3535
check-patches = { cmd = "python check_patches_clean_apply.py", depends-on = ["generate-recipes"] }
36+
create_snapshot = { cmd = "vinca-snapshot -d humble -o rosdistro_snapshot.yaml" }
37+
upload = "rattler-build upload anaconda -o robostack-staging -a $ANACONDA_API_TOKEN"
38+
build_continue_on_failure = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --continue-on-failure --skip-existing", depends-on = ["generate-recipes"] }
39+
3640
generate-recipes-emscripten = { cmd = "vinca -m --platform emscripten-wasm32", depends-on = ["remove-recipes"] }
3741
check-patches-emscripten = { cmd = "python check_patches_clean_apply.py", depends-on = ["generate-recipes-emscripten"] }
38-
remove-recipes = { cmd = "rm -rf recipes_only_patch; rm -rf recipes; mkdir recipes" }
39-
generate-gha-workflows = { cmd = "vinca-gha --trigger-branch dummy_build_branch_as_it_is_unused -d ./recipes", depends-on = ["generate-recipes"] }
40-
build_continue_on_failure = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c conda-forge -c robostack-staging --continue-on-failure --skip-existing", depends-on = ["generate-recipes"] }
41-
build = { cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging --skip-existing", depends-on = ["generate-recipes"] }
42-
build_one_package = { cmd = "cp ./patch/$PACKAGE.*patch ./recipes/$PACKAGE/patch/; rattler-build build --recipe ./recipes/$PACKAGE/recipe.yaml -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging", env = { PACKAGE = "ros-humble-ros-workspace" } }
43-
create_snapshot = { cmd = "vinca-snapshot -d humble -o rosdistro_snapshot.yaml" }
4442

43+
[tasks.build]
44+
cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging --skip-existing"
45+
depends-on = ["generate-recipes"]
46+
description = "Build all packages, from the ./recipes dir. This will skip already existing packages, so it can be used to build only a subset of packages by first removing the recipes of the packages you want to rebuild (see `pixi remove-recipes`)."
47+
48+
[tasks.remove-recipes]
49+
cmd = "rm -rf recipes_only_patch; rm -rf recipes; mkdir recipes"
50+
description = "Remove all generated recipes, before regenerating them."
51+
52+
[tasks.build-one]
53+
cmd = "cp ./patch/{{ PACKAGE }}.*patch ./recipes/{{ PACKAGE }}/patch/; rattler-build build --recipe ./recipes/{{ PACKAGE }}/recipe.yaml -m ./conda_build_config.yaml -c https://repo.prefix.dev/conda-forge -c robostack-staging"
54+
args = [{ arg = "PACKAGE", default = "ros-humble-ros-workspace" }]
55+
description = "Build a single package, from the ./recipes dir. Add the `ros-humble-` prefix to the package name, e.g. `pixi build-one --package ros-humble-ros-workspace`"
4556

4657
[tasks.build-emscripten]
4758
cmd = [

0 commit comments

Comments
 (0)