Automatically install rust toolchain for CI #1

Merged
bspeice merged 3 commits from cargo_gpu_builder into main 2026-06-19 22:20:24 -04:00
Showing only changes of commit 24a40adcad - Show all commits
+3 -5
View File
@@ -9,11 +9,9 @@ pub fn main() -> anyhow::Result<()> {
.copied() .copied()
.collect::<PathBuf>(); .collect::<PathBuf>();
let mut install = Install::from_shader_crate(crate_path.clone()); let install = Install::from_shader_crate(crate_path.clone())
install.build_script = true; .within_build_script()
install.auto_install_rust_toolchain = true; .run()?;
let install = install.run()?;
let mut builder = install.to_spirv_builder(crate_path, "spirv-unknown-vulkan1.3"); let mut builder = install.to_spirv_builder(crate_path, "spirv-unknown-vulkan1.3");
builder.build_script.defaults = true; builder.build_script.defaults = true;
builder.shader_panic_strategy = ShaderPanicStrategy::SilentExit; builder.shader_panic_strategy = ShaderPanicStrategy::SilentExit;