-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Enable Wasm CI #265
Comments
I'll try to take a look tomorrow :) |
So one thing that strikes me is that this is not only a problem for WASM -- the Here, the cache has a hit, but the test is still recompiling the dependencies. My first guess is that it's the I assume that cargo doesn't use any of the cached stuff if it was compiled with an older rust version, which makes sense for performance and other stuff. Here's the catch though: We currently use the latest nightly version in CI. That means that, even if we fix the cache action to consider the rustc version, it will be outdated every day and we'll basically render the cache useless. So we should probably do two things:
I'm not 100% certain that this will fix the issue, but it's worth a shot. |
We can also try this tip from the Cargo book https://doc.rust-lang.org/cargo/faq.html#why-is-cargo-rebuilding-my-code to get more info on why cargo is rebuilding stuff:
So basically setting the But it could still be helpful if the native builds aren't caching properly. |
Your reasoning sound sound. I'm very open to setting a fixed nightly version for the CI and periodically updating it (say, at every new Bevy release). |
Fair point, I'm really looking forward to |
@TimJentzsch looks like pinning the nightly version didn't change anything 🤔 |
Did you clear the caches afterwards? Since the version is not yet included in the cache hash, they need to be regenerated or it will always start with a different nightly version |
@janhohenheim It looks like the caches were still from the old nightly setup, I cleared them just now. |
Thanks!! You're the best :D |
Small update: The Rust version is now included in the cache key for |
See #255 and #264
@TimJentzsch do you have any idea how we can keep the
target
dir from being invalidated on Wasm builds?The text was updated successfully, but these errors were encountered: