Closed linrongbin16 closed 1 month ago
cross
is unrelated to this action (setup-cross-toolchain-action). you have to use cross
when using cross
, cargo
when using this action as documented.
Why have to install taiki-e/install-action@cross when building linux musl?
This action did not support musl in the past, so cross was necessary to build musl. It is no longer necessary. https://github.com/taiki-e/cargo-hack/commit/46f5675f11acc51cf7f48068f4cbfb172c8e1248#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
3. How does
taiki-e/upload-rust-binary-action
action select whether it should usecargo
orcross
? (I remember I had read the source code, inside it will detect whether it's a cross-platform building or not, and auto selectcross
orcargo
)
Please read documentation: https://github.com/taiki-e/upload-rust-binary-action?tab=readme-ov-file#example-workflow-cross-compilation
Got it, thanks for reply!
hi, thanks to your action, it helps a lot. But I am confused when try to integrate your several github actions to do following jobs for me:
Here's my github action file (I think I copy this part from some other projects):
https://github.com/rsvim/rsvim/blob/f199ae47a9f641fe8e2fa4c2f0840fe90c9cecdf/.github/workflows/nightly.yml#L72-L93
And here's my question:
taiki-e/install-action@cross
when building linuxmusl
? I thinktaiki-e/setup-cross-toolchain-action
already installscross
for me, correct?setup-cross-toolchain-action
readme document: https://github.com/taiki-e/setup-cross-toolchain-action?tab=readme-ov-file#example-workflow-basic-usage, the example shows users only need to writecargo run
. But incross
document, it says users need to usecross run
instead ofcargo
. Which one is correct?taiki-e/upload-rust-binary-action
action select whether it should usecargo
orcross
? (I remember I had read the source code, inside it will detect whether it's a cross-platform building or not, and auto selectcross
orcargo
)