@@ -81,9 +81,59 @@ depends-on = [
8181]
8282args = [" recipe" , { arg = " target_platform" , default = " " }]
8383
84+ [feature .build .tasks .rm-rust-backend-package ]
85+ cmd = " rm -rf artifacts-channel/*/pixi-build-rust*.conda || true"
86+ inputs = [
87+ " crates/pixi-build-rust/src/*.rs" ,
88+ " crates/pixi-build-rust/Cargo.toml" ,
89+ ]
90+
91+ [feature .build .tasks .rm-rattler-build-backend-package ]
92+ cmd = " rm -rf artifacts-channel/*/pixi-build-rattler-build*.conda || true"
93+ inputs = [
94+ " crates/pixi-build-rattler-build/src/*.rs" ,
95+ " crates/pixi-build-rattler-build/Cargo.toml" ,
96+ ]
97+
98+ [feature .build .tasks .rm-python-backend-package ]
99+ cmd = " rm -rf artifacts-channel/*/pixi-build-python*.conda || true"
100+ inputs = [
101+ " crates/pixi-build-python/src/*.rs" ,
102+ " crates/pixi-build-python/Cargo.toml" ,
103+ ]
104+
105+ [feature .build .tasks .rm-mojo-backend-package ]
106+ cmd = " rm -rf artifacts-channel/*/pixi-build-mojo*.conda || true"
107+ inputs = [
108+ " crates/pixi-build-mojo/src/*.rs" ,
109+ " crates/pixi-build-mojo/Cargo.toml" ,
110+ ]
111+
112+ [feature .build .tasks .rm-cmake-backend-package ]
113+ cmd = " rm -rf artifacts-channel/*/pixi-build-cmake*.conda || true"
114+ inputs = [
115+ " crates/pixi-build-cmake/src/*.rs" ,
116+ " crates/pixi-build-cmake/Cargo.toml" ,
117+ ]
118+
119+ [feature .build .tasks .rm-ros-backend-package ]
120+ cmd = " rm -rf artifacts-channel/*/pixi-build-ros*.conda || true"
121+ inputs = [
122+ " backends/pixi-build-ros/**/*.py" ,
123+ " backends/pixi-build-ros/pyproject.toml" ,
124+ " backends/pixi-build-ros/templates/*" ,
125+ ]
126+
84127[feature .build .tasks .build-testsuite-backends ]
85- cmd = " rattler-build build --experimental --no-build-id --recipe recipe/testsuite-backends --variant-config recipe/variants.yaml --output-dir {{ output_dir }}"
86- args = [{ arg = " output_dir" , default = " artifacts-channel" }]
128+ depends-on = [
129+ " rm-rust-backend-package" ,
130+ " rm-rattler-build-backend-package" ,
131+ " rm-python-backend-package" ,
132+ " rm-mojo-backend-package" ,
133+ " rm-cmake-backend-package" ,
134+ " rm-ros-backend-package" ,
135+ ]
136+ cmd = " rattler-build build --experimental --no-build-id --skip-existing --recipe recipe/testsuite-backends --variant-config recipe/variants.yaml --output-dir artifacts-channel"
87137inputs = [
88138 " recipe/testsuite-backends/recipe.yaml" ,
89139 " recipe/variants.yaml" ,
@@ -93,54 +143,24 @@ inputs = [
93143 " backends/pixi-build-ros/pyproject.toml" ,
94144 " backends/pixi-build-ros/templates/*" ,
95145]
96- outputs = [" {{ output_dir }} " ]
146+ outputs = [" artifacts-channel " ]
97147
98148[feature .build .tasks .clean-backends-build-outputs ]
99- depends-on = [
100- { task = " build-testsuite-backends" , args = [
101- " {{ output_dir }}" ,
102- ] },
103- ]
104- args = [{ arg = " output_dir" , default = " artifacts-channel" }]
105- cmd = " python scripts/clean-outputs.py {{ output_dir }}"
149+ depends-on = [" build-testsuite-backends" ]
150+ cmd = " python scripts/clean-outputs.py artifacts-channel"
106151
107152[feature .build .tasks .index-testsuite-channel ]
108- depends-on = [
109- { task = " build-testsuite-backends" , args = [
110- " {{ channel_dir }}" ,
111- ] },
112- ]
113- args = [{ arg = " channel_dir" , default = " artifacts-channel" }]
114- cmd = " rattler-index fs --force --write-shards false --write-zst false {{ channel_dir }}"
153+ depends-on = [" build-testsuite-backends" ]
154+ cmd = " rattler-index fs --force --write-shards false --write-zst false artifacts-channel"
115155
116156[feature .build .tasks .rm-build ]
117- cmd = " rm -rf {{ channel_dir }}/bld"
118- args = [{ arg = " channel_dir" , default = " artifacts-channel" }]
157+ cmd = " rm -rf artifacts-channel/bld"
119158
120159[feature .build .tasks .create-channel ]
121- depends-on = [
122- { task = " rm-build" , args = [
123- " {{ channel_dir }}" ,
124- ] },
125- { task = " build-testsuite-backends" , args = [
126- " {{ channel_dir }}" ,
127- ] },
128- { task = " index-testsuite-channel" , args = [
129- " {{ channel_dir }}" ,
130- ] },
131- ]
132- args = [{ arg = " channel_dir" , default = " artifacts-channel" }]
160+ depends-on = [" rm-build" , " build-testsuite-backends" , " index-testsuite-channel" ]
133161
134162[feature .build .tasks .create-testsuite-channel ]
135- depends-on = [
136- { task = " create-channel" , args = [
137- " {{ channel_dir }}" ,
138- ] },
139- { task = " clean-backends-build-outputs" , args = [
140- " {{ channel_dir }}" ,
141- ] },
142- ]
143- args = [{ arg = " channel_dir" , default = " artifacts-channel" }]
163+ depends-on = [" create-channel" , " clean-backends-build-outputs" ]
144164
145165[feature .build .activation .env ]
146166RUSTC_WRAPPER = " sccache"
0 commit comments