Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f627b25afa |
@@ -1,6 +1,7 @@
|
|||||||
name: "CI"
|
name: "CI"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -31,4 +32,4 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
- run: cargo install --git https://github.com/rust-gpu/rust-gpu cargo-gpu
|
- run: cargo install --git https://github.com/rust-gpu/rust-gpu cargo-gpu
|
||||||
- run: cargo gpu check --auto-install-rust-toolchain -p enkou-shaders
|
- run: cargo gpu check -p enkou-shaders
|
||||||
|
|||||||
@@ -9,9 +9,11 @@ pub fn main() -> anyhow::Result<()> {
|
|||||||
.copied()
|
.copied()
|
||||||
.collect::<PathBuf>();
|
.collect::<PathBuf>();
|
||||||
|
|
||||||
let install = Install::from_shader_crate(crate_path.clone())
|
let mut install = Install::from_shader_crate(crate_path.clone());
|
||||||
.within_build_script()
|
install.build_script = true;
|
||||||
.run()?;
|
install.auto_install_rust_toolchain = true;
|
||||||
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user