Closed jb-alvarado closed 10 months ago
Hi, @jb-alvarado, I don't know that this action needs to be changed for you to use it. I'm not even sure it would work at all. The way the action works is that it will run cross build
or cross test
instead of cargo
, depending on the target platform. What cross
does is run a Docker image containing QEMU to emulate the target architecture.
But I don't think there's any reason you would need to run cargo deb
or cargo generate-rpm
inside that Docker image. I'm not even sure you can do that. Looking at the cargo-deb
docs, it has a section on cross-compilation at https://github.com/kornelski/cargo-deb#cross-compilation. It looks like you can run cross build
(which this action will do) and then run cargo deb --target=XXX --no-build
. I think you can just do this in a separate step on the ubuntu-latest
os. I would imagine cargo generate-rpm
should work similarly.
Thank you @autarch, for your explanations! I will see if I get it to work with your hints
Hello, is it possible to run multiple commands on one platform and release all results?
At the moment I have this run command:
But I would like to cross compile that for different platforms.
Full action I have here, which I would like to migrate to your cross compile action to support more architectures.