Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run in CI/GitHub Actions #147

Open
stefnotch opened this issue Jan 6, 2024 · 1 comment
Open

Run in CI/GitHub Actions #147

stefnotch opened this issue Jan 6, 2024 · 1 comment
Labels

Comments

@stefnotch
Copy link

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

  • Install Vulkan SDK in a GitHub action. This sadly takes longer than the entire Rust compilation, so it's not a good option.
  • Compile Shaderc in a GitHub action. Harder to set up, and still rather slow.
  • Find a precompiled shaderc library and get it into a GitHub action. Probably the most practical option?

And then there's a wild alternative

  • Compile Shaderc to WASM, and then use a Rusty WASM runtime to run that. That would definitely be slower than the precompiled option, but it might be interesting, because it would let this library run on far more platforms?

What would you recommend?

@antiagainst
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants