r/roguelikedev • u/avinashv • Jul 07 '21
GitHub Actions for RLTK WASM builds
In the Rusty Roguelike tutorial the author starts with a way to build the game for a web target using WASM. I'm not too familiar with it and couldn't work it out on my own, so has anybody managed to get a working Github Action to do this as part of a CI push?
15
Upvotes
3
u/Zireael07 Veins of the Earth Jul 07 '21
When I did RLTK WASM back in 2019, I created the builds manually.
My current game is still Rust to WASM but not RLTK - however I imagine the same workflow would work with minimal adjustments: https://github.com/Zireael07/Rust-HTML-mudlike/blob/master/.github/workflows/rust.yml
1
u/_AngelOnFira_ Jul 07 '21
There should be examples already of Rust programs running in Actions, but I'll try to take a look in a bit to see if I can make an example.
2
u/Absle Jul 07 '21
I'm actually going to be starting this tutorial soon too, but I'm not interested in running it on the web at all, at least not at first. Do you know if the webassembly stuff can be skipped or is it integral to the GUI?
1
u/thebracket Jul 08 '21
This is an area I'd like to improve (author of RLTK/bracket-lib here). I really need to find a way to get it into the CI tree, a PR last week messed up WASM builds (I've posted a fixed crate).