Skip to content

Commit f62023f

Browse files
committed
ci: speed up old version builds by not building current version
1 parent 7f3a9d8 commit f62023f

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

crates/xtask/src/main.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,7 @@ fn main() {
151151
log::info!("installing cargo gpu");
152152
cmd(["cargo", "install", "--path", "crates/cargo-gpu"]).unwrap();
153153

154-
log::info!("installing cargo gpu artifacts");
155-
cmd([
156-
"cargo",
157-
"gpu",
158-
"install",
159-
"--shader-crate",
160-
SHADER_CRATE_PATH,
161-
"--auto-install-rust-toolchain",
162-
"--force-overwrite-lockfiles-v4-to-v3",
163-
])
164-
.unwrap();
165-
154+
log::info!("setup project");
166155
let dir = tempdir::TempDir::new("test-shader-output").unwrap();
167156
let mut overwriter = ShaderCrateTemplateCargoTomlWriter::new();
168157
overwriter.replace_output_dir(dir.path()).unwrap();
@@ -175,6 +164,7 @@ fn main() {
175164
}
176165
}
177166

167+
log::info!("building with auto-install");
178168
cmd([
179169
"cargo",
180170
"gpu",

0 commit comments

Comments
 (0)