google / shaderc-rs

Rust bindings for the shaderc library.
https://docs.rs/shaderc
Apache License 2.0
261 stars 64 forks source link

Run in CI/GitHub Actions #147

Open stefnotch opened 8 months ago

stefnotch commented 8 months ago

Thank you for this lovely library.

I wanted to ask if there's a good way of running this in a GitHub action. As in, if I have a Rust project that depends on shaderc-rs, and I want to compile it in a GitHub action, what's the most practical way of doing so?

From what I can tell, the current options are

And then there's a wild alternative

What would you recommend?

antiagainst commented 8 months ago

We only need the shaderc library from the Vulkan SDK so no need to install the full Vulkan SDK. I agree that the third option is better. Maybe you can extract the shaderc libraries from the Vulkan SDK and put it in a git repo (with git large file storage if necessary) that you can checkout in github action? Other ideas include looking at GitHub action caches (https://github.com/actions/cache) to avoid download every time. Hopefully this help.s