Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

More than one extra target #52

Closed
GrayJack opened this issue Feb 8, 2020 · 4 comments
Closed

More than one extra target #52

GrayJack opened this issue Feb 8, 2020 · 4 comments

Comments

@GrayJack
Copy link

GrayJack commented Feb 8, 2020

There is a feature to add mora than one extra target? If there is, how to set up?

@GrayJack GrayJack changed the title More than on extra target More than one extra target Feb 8, 2020
@svartalf
Copy link
Member

svartalf commented Feb 8, 2020

There is none, as so far I think this would a really rare case to support it out of box.

As long as you will "use" this Action, you will be guaranteed to have rustup in your PATH, so you can just add an extra run step to install additional target with rustup target add {your-target} command in it.

@svartalf
Copy link
Member

svartalf commented Feb 8, 2020

UPD: I believe you want to solve this problem? Alternatively, you can include this target into the build matrix, but that would mean a separate full build

@GrayJack
Copy link
Author

GrayJack commented Feb 8, 2020

Yeah, I end up running the command since rustup was in path. Thanks for the help 😄

@clauswilke
Copy link

clauswilke commented Dec 12, 2020

Just came across this issue and wanted to point out that this is not that rare of a situation. There's an increasing number of people wanting to use Rust with R (e.g.: https://github.com/extendr/extendr), and all R packages that want to include Rust code will require two targets. This is because R by default builds both 32-bit and 64-bit binaries on Windows, in a single build. See e.g. here: https://github.com/clauswilke/sinab#installation

I expect I'll be able to use the rustup call, as described in the comment, but being able to specify two targets at once would make the build scripts much cleaner and simpler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants