Closed Ludea closed 3 days ago
Strange, as you can see i kinda do the same during the test builds https://github.com/BlackDex/rust-musl/actions/runs/11477497940/job/31939721088#step:14:9
Though that uses the docker run and not my image as GHA image. I actually have never tried that, but in theory it should work.
Maybe something in your checkout is overwriting something? Ill have to test this my self to see what happens.
Is the repo/branch you use for this public?
Strange, when i try to use act, it seems to work just fine.
act push -j build_container
I suspect it has something to do with some default env's Github sets. Ill check a bit further.
You can probably fix this for now by setting:
env:
HOME: /root
env:
HOME: /root
Fix my issue, thanks
Ok, cool I'm working on a fix for this so that the next build's will be supported this way.
@Ludea, you should now be able to remove that env
again. I fixed the images.
Now I get /__w/_temp/b84a7ab6-8893-49f7-8d31-b598ae0128ba.sh: 1: cargo: not found Error: Process completed with exit code 127
without env
I try with ghcr.io/blackdex/rust-musl:aarch64-musl-nightly-2024-10-25
, and it works as expected (like your test) (with env var)
I still get
error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
without env var
With ghcr.io/blackdex/rust-musl:aarch64-musl
I get
/__w/_temp/b84a7ab6-8893-49f7-8d31-b598ae0128ba.sh: 1: cargo: not found Error: Process completed with exit code 127
without env var
Yea i noticed. GitHub Actions is doing something strange.
@Ludea Ok, i think i know what i have to do to get this working. I only need to check if this will not cause any issues with at least Vaultwarden for example. And I'm not sure if it could effect others, but i do not think it will.
I need to install/define cargo/rustup at a different location and define the right env variables for this. The official rust images work like this, and that will probably help make it more compatible and maybe also to be more compatible with cross-rs even.
I have it working now, and i tested it using a fork of your project. The images are currently being built and once done it should be able to run without any extra env needed to be set.
Fixed via 8831be56e896d22aea117ec2cb8d6051a7fef46b
Hi,
I get
when using container with GHA: