taiki-e / setup-cross-toolchain-action

GitHub Action for setup toolchains for cross compilation and cross testing for Rust.
Apache License 2.0
32 stars 3 forks source link

FEATURE REQUEST: disable setting CARGO_BUILD_TARGET #18

Open anatawa12 opened 8 months ago

anatawa12 commented 8 months ago

I want to cargo build --target <target> to cross-build and cargo run natively but because this action will set CARGO_BUILD_TARGET it's not easy to cargo run. (AFAIK there's no easy way to get default target) Could you provide option to disable setting CARGO_BUILD_TARGET?

taiki-e commented 8 months ago

I would accept a PR to implement this. (Something like build_target: false)

See https://github.com/taiki-e/upload-rust-binary-action/commit/850f2b7a10a00c9a7f3516a5042bb72fcc971bd3 for an example of adding a new option to the action.