Closed yutannihilation closed 7 months ago
Thanks for investigating all the available options for us, I appreciate it.
Okay, so after re-reading the thread in r-wasm/actions#13 and this one I think updating the base Docker image is the best way to go. It's not ideal with the size increase, but I think once compressed it's not so bad (details below) and it means it won't have to be constantly reinstalled in GHA runs for rust R packages.
Let's install the required rust and cargo
in the r-wasm/webr base Dockerfile. Since you have this working already, would you mind opening a PR there adding the required Docker RUN
commands?
Wow, thank you! Okay, let me try a pull request. Before that I think, I need a bit more struggle:
cargo: command not found
error (cf. https://github.com/yutannihilation/savvy/issues/84). Probably I needed to add ENV
steps to the last squashing step, but I should confirm.
docker manifest inspect
later. I guess probably it won't change much, though.equivs
. It might be better to do this for rustc
and cargo
; it will not only reduce the time of rwasm::build()
a bit but also prevent troubles related to the multiple Rust installations. This is optional, and I can remove if you don't like this way.
I noticed R-universe's wasm build installs
rustc
andcargo
if there's theSystemRequirements
.https://github.com/r-universe/yutannihilation/actions/runs/7848104729/job/21418576850#step:5:324
However, the build fails because the
cargo
is not the supposed one.I'm not sure where this should be handled. Options that I came up with are
cargo
andrustc
DEB packages, and add the repository to the Docker image.