Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: disable setting CARGO_BUILD_TARGET #18

Open
anatawa12 opened this issue Jan 16, 2024 · 1 comment
Open

FEATURE REQUEST: disable setting CARGO_BUILD_TARGET #18

anatawa12 opened this issue Jan 16, 2024 · 1 comment
Labels
C-enhancement Category: A new feature or an improvement for an existing one

Comments

@anatawa12
Copy link

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
Copy link
Owner

taiki-e commented Jan 17, 2024

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

See taiki-e/upload-rust-binary-action@850f2b7 for an example of adding a new option to the action.

@taiki-e taiki-e added the C-enhancement Category: A new feature or an improvement for an existing one label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: A new feature or an improvement for an existing one
Projects
None yet
Development

No branches or pull requests

2 participants