hey @Sze, with your help i was able to build it into wasm version and i was able to host it on github pages. raylib web game
i think the only thing that differs from ur PR is i am not using the sysroot to find the cache path of emscripten. I am installing emscripten using nix and turns out i can use EM_CACHE env variable to point emscripten into a new cache path. I am using this trick to install it in the current directory and using that inside our build.zig file. breakout-zig/flake.nix at main · jossephus/breakout-zig · GitHub
I don’t have much experience with nix but it looks like a nice way to freeze the emscripten version. I think I may eventually end up using it, just was too busy with other things to take a deeper look at nix.